Deleting specific records based on query results
Is there a way to use a select query to find and then delete specific records
in a database. My database records basic applicant information in one table
(tblApplicants) and any interview data in another (TblActivities). I need to
do an annual purge of applicants from a previous year who were never
interviewed. I have a select query that returns the name and date entered
from the TblApplicants table where the requisition data in the TblActivities
table is null. I know I can then go to the TblApplicants and manually delete
each record, but at over 1700 records that seems a lit...matching a column of numbers to another in another spreadsheet
I have a spreadsheet of shortpayment amounts and their invoice numbers on one
spreadsheet with a column of credit amounts with their invoice numbers on
another spreadsheet. I need to match the credits written with the
kinda like this
spreadsheet 1 spreadsheet 2
inv # amount date Credit #
122334 15.00 11-25-09 675555 15.00
223345 22.00 10-20-09 754444 22.00
naturally...Acessing function with a DLL which has be loaded from another dll
I have A.dll and B.dll.
Assume that A.dll has following functions:
Assume that B.dll has following functions:
I am loading B.dll from function A1() in A.dll.After Loading B.dll i
make a call to B1().After executing the call the function returns to
beginning of A2.dll.
why is this so?
Define "begining". The word tends to make no sense in this context.
What you seem to be saying is that you have
HANDLE h = ::LoadLibrary(_T("B.DLL"));
...test for h==NULL, deal with error
typedef void (*B1)() B1Proc;
...Grabbing a number from another cell on another worksheet
I have a spreadsheet with a number of different worksheets. All I want to do
is if I enter a number into a cell on the 2nd worksheet for example, I want
it to automatically show in a specific cell on the first worksheet. So a
simple copy and paste but for excel to automatically do it for me! it seems
like something so easy that I just cant figure out how to do.
Do this once.
Select the cell on the 2nd sheet
Navigate to the other sheet and select the cell where you want the value to
Right click>Paste Special>Paste Lin...Creating column content based on another column's keyword(s) #2
That scriptlet was very useful, and easily tweakable to work in myria
KHashmi316's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=1043
View this thread: http://www.excelforum.com/showthread.php?threadid=27348
Glad to hear that !
Thanks for posting back
Please respond in thread
"KHashmi316" <KHashmi316.email@example.com> wrote in message
news:KHashmi316.1e...A simple Question
I am a little new to macros and I am having trouble using a suggested
macro in my spreadsheet. My simple question is what do I need to do to
change the following macro so that it will work on my spreadsheet.
Sub DeleteEmptyRows(DeleteRange As Range)
' Deletes all empty rows in DeleteRange
' Example: DeleteEmptyRows Selection
' Example: DeleteEmptyRows Range("A1:D100")
Dim rCount As Long, r As Long
If DeleteRange Is Nothing Then Exit Sub
If DeleteRange.Areas.Count > 1 Then Exit Sub
rCount = .Rows.Count
For r = rCount To 1 Step -1
If Application.CountA...modeling action queries
I am reverse engineering a database I wrote in access for documentatio
purposes. Visio does not import my action queries. Do I have to writ
the appends and make tables in SQL and then enter a new object as
Here is an example of the SQL for one such append query:
INSERT INTO CFO ( [Desc], [Budget Code], [Expend Code], [Spent De
2004], [Allocated Dec 2004], [Spent Jun 2005], [Allocated Jun 2005]
[Spent Sep 2005], [Allocated Sep 2005], [Spent Oct 2005], [Allocate
Oct 2005], [Spent Jun 2006], [Allocated Jun 2006], [Unit Description]
[Department Description], [Requested Oct 2005]...Populate data in cell by looking at another cells data
Hope I find you well.
I'm not even sure how to go about this, so I hope that
someone can shed some light.
I have a serial number in one cell eg '80199DD270238'
where 'DD' is code for another value, in this case 'DD'
How can I automatically populate a cell with the
value 'BLUE' by looking at the serial number.
Many thanks for any help you can provide.
if the characters are alsways at the same place use
if they could be at ...Sum dependant on '1' value in another column
Let's say I have a '1' or nothing in column 'L' and a time in seconds in
column 'B'. The '1' means the time is a legitimate one. Can I do a sum of
all the 'legitimate' times in column 'B' based on whether there is a
corresponding '1' in column 'L'? Is there a formula that will allow me to
do that? Sorry for the ignorance of the question but it is late and I am
struggling to make this spreadsheet work for me.
Thanks in advance,
Look at the SUMIF function in Excel help.
=SUMIF(L1:L10...4 #Error Lines in a Query
I have a query that will show any HorseID that does not have a ClientName
but for some reason it has 4 records showing with #Error in ClientName, any
Ideas how this can happen and how do I clear them?
SELECT IIf(IsNull([HorseName]) Or [HorseName]='',[FatherName] & '--' &
[MotherName] & ' -- ' & funCalcAge(Format('01-Aug-' &
[DateOfBirth],'dd/mmm/yyyy'),Format(Now(),'dd/mmm/yyyy'),1) & ' -- ' &
[Sex],[HorseName]) AS ClientName, tblHorseInfo.FatherName,
tblHorseInfo.MotherName, tblHorseInfo.Sex,...is it possible to execute write to the fields in another .xsl form a macro in another .xsl? e.g. some way to load another .xsl into an .xsl macro and write to its data? #2
is it possible to execute write to the fields in another .xsl form a macro
in another .xsl? e.g. some way to load another .xsl into an .xsl macro and
write to its data?
Does anyone know if it is possible to query within the results set of
another query using MSCRM V3?
So a user can create an advanced find, then the user queries from the
results displayed from the search? Like a nested select.
Using Advanced Find, every line you add to a query narrows your results set
further. So, for example, if you do an Advanced Find for
Owner | Equals | Bob Smith
Email Address | Contains Data
and this returns 50 contacts, if you add another line, such as
Status | Equals | Active
you will in effect be searching within your result...Help with query
if field1 is greater than zero and less than 1 than 1 otherwise 0
Whats the right way to write that expression?
NewCalculatedField: IIF([Field1] > 0 and [Field1] < 1, 1, 0)
"Qaspec" <Qaspec@discussions.microsoft.com> wrote in message
> if field1 is greater than zero and less than 1 than 1 otherwise 0
> Whats the right way to write that expression?
...Automatic Link to another workbook
I have a workbook created that, every time I open it, I
get the question: Do you want to update the automatic link
to data in another workbook?
I didn't consciously set up a link and I don't want to get
this message. How do I find this link and break it so I
will not continue to get this message?
Any help is appreciated.
Close any other Excel workbooks you have open and do a "Find" for :\ (colon
If you have several worksheets in your workbook, ask Excel to search the
entire workbook by selecting find within "Workbook" instead of "Sheet&quo...Copying from one ListControl to Another...
Hello everyone, I have been studying how List Controls work, and now I
have two List Controls, A and B. Both of the list controls are in
Report_View and they both have the same # of columns. What I would
like to do is copy each entry of A into B.
I use CListCtrl::GetItem(..) to get the item, and I use
CListCtrl::InsertItem(..) to insert the item into B. However, this is
not working. It is only inserting the first subitem.
Is it possible to copy the entire item i.e, subitems 0-2 from CListCtrl
A into CListCtrl B?
...Multiple Queries Question
I have a database to track awards for our program. I have created several
queries and reports however I want to do a all inclusive status report for
the Awards program.
I have made Queries for Pending Awards for the Current Week, Previous Week,
Previous Month, Current Month, Previous Qrter, Current Qrter, Current YTD,
Previous Year. I also have Queries for presented Awards for Current and
Previous: Week, Month, Quarter, Year
I have a question that I am stumped on. The several queries that I have made
I want to place into one report. In some cases one of these queries may have
blank ...concatenation query
I'm guessing this isn't allowed but I'd welcome confirmation
Can one concatenate a variable into a VBA command
So for example
instead of userform1. windowsmediaplayer1.controls.currentposition
could you have
userform1. windowsmediaplayer & ("range a1") & .controls.currentposition
If so what would the correct syntax be?
In WHICH group do you want an answer?
Microsoft MVP Excel
"teepee" <firstname.lastname@example.org> wrote in message
news:email@example.com.....Another question about IF(COUNTIF) checks in Excel
<Tiff1618@discussions.microsoft.com> wrote in message
> > Hey again,
> > Is there a formula I can use to figure out if there is one specific phrase
> > in a selection?
> > I'm updating the attendance prgram at the school that I work at. Every
> > student has their own attendance sheet in Excel, and each sheet sort of
> > looks
> > like this:
> > |Monday|
> > Period 1:| A | (A=Absent; S=Seat time)
> > Per...combobox in query
Hello everybody, I have a question concerning the "Enter Parameter Value"
window that opens when I run a query.
Is it possible to have that as a combobox so that a list of possibilities is
Another question has to do with the same query. This asks a date from and to
(in the query criteria >[from] And [to]. I would like the selected period to
be shown in the report. Is this possible (and if so... how can I achieve
Thanks for all the help you can give
Save the Dogs Onlus - www.savethedogs.eu
THINK BEFORE YOU PRINT: before printing this e-mail think whe...Turn Off Auto Query on saved query
I saved a query in MS-Query and now want to change it, but I cannot un-press
the Auto Query button to allow me to edit it. How is that done?
on your external data tool bar is an icon for edit query.
if you external data tool bar is not up, then
RClick the tool bars at the top, click customize.
click the toolbar tab. check the external data toolbar.
Click somewhere inside the query range, then click edit
query. follow the wizards instructions.
>I saved a query in MS-Query and now want to change it,
but I cannot un-press
>the Auto Query button to a...Another If/Ten
Trying to use IF/THEN to look at Column A on one sheet, if any cell in that
column equals today() would like cells from that row to fill in another
Is this possible? Any ideas on how to make that happen??
Maybe you can use format|Conditional formatting.
Select the range to color (I used A2:X999).
With A2 the activecell, I did:
and give it a nice format
Brian Bennett wrote:
> HI all.
> Trying to use IF/THEN to look at Column A on one sheet, if any cell in that
> column equal...How can I open a file saved in another version of Publisher?
I have Publisher 2000 and I am trying to open a .pub file but the message
says it cannot open because the file is save in a different version of
Publisher. Is there a way to open the file in Publisher 2000? Any help would
be greatly appreciated.
> I have Publisher 2000 and I am trying to open a .pub file but the
> message says it cannot open because the file is save in a different
> version of Publisher. Is there a way to open the file in Publisher
> 2000? Any help would be greatly appreciated.
More than likely, this file was created in Publisher 2002 or 2003. Y...Restricting query data
I have a query set so I pull DISTINCT dates in the SQL from 1/1/08 thru
12/31/08 to take out duplicate accounts, this works great when I run the
report quarterly or yearly but I need to run this report monthly. I have 3
tables that work together and these dates are coming from my Activities
table, I keep track of when I have had contact with them.
I am looking to only count these people 1 time in a year (filter by start
date does not work is it is driven by actibvity date) for example if I work
with them in 1/08 run my report in 1/08 they should show up. If I work with
them in 2/0...Another Gag thread
What's the difference between an Irish wedding and an Irish funeral?
One less drunk at the funeral.
The mayor of New Orleans was asked about his position on Roe vs. Wade.
He said he didn't really care how people got out of the city.
"AB" <AB@discussions.microsoft.com> wrote in message
What's the difference between an Irish wedding and an Irish funeral?
One less drunk at the funeral.
By looking at a picture of a person, you have to decide if he is a computer
geek or a serial k...Referencing another field
I have a Combobox field called "WorkerID" on a form. This field is not tied
to the Forms data source. It is pretty much floating, no control source, but
it does have a Row Source Type, Select Query that pulls Worker IDs form a
table called "tbl_WorkerIDs". This table has both WorkerIDs and WorkerNames.
I want to add another floating combobox field to the form to display the
WorkerNames. So if I change the combobox WorkerID I need the WorkerName to
How do I configure the WorkerName combobox to look at the WorkerID field and