Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Syntax

Status
Not open for further replies.

Moose222

Technical User
Oct 18, 2001
13
US
I have a report that is writeen in DB3, and I am converting it, I need help converting the following equation to Access

count for gcflag = "G" .and. order ' ' to tempvarg


I would take it that I should be able to utilize dcount or dsum to get the answer to this report, how about the blank space for the order column?

Thanks,
Jim Nelson
 
Hi Jim!

Try this:

DCount("gcflag", "YourTableName", "gcflag = 'G' And order = ' '")

The aggregate functions have the the general format:

DFunction(Your field as a string, your domain(table or query) as a string, your criteria as a string)

hth Jeff Bridgham
bridgham@purdue.edu
 
Jerby,

Thanks for writing, I am still coming up with an answer of "0". If "GCFLAG" is a coluumn and "ORDER" is a column in the db, would both have to be in ""?

I am just guessing at this point.

Thanks in advance for any help,
Jim
 
Hi!

Well, there is another thing that could be different. If DB3 is like SAS then when you put in order = ' ', what you are looking for is an empty string. In VBA you would need to put order = '' to look for an empty string.

hth
Jeff Bridgham
bridgham@purdue.edu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top