If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > DoCmd.OpenReport WhereCondition prblms

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-13-02, 17:33
jneff11 jneff11 is offline
Registered User
 
Join Date: May 2002
Location: Central California
Posts: 1
DoCmd.OpenReport WhereCondition prblms

I am trying to utilize two simple where conditions populated by a click on a listbox and on the second one a query window pops up with my selected variable?

For example I click on a listbox to get the "intPosCrnt" value and then click on another list box to get the "strStat" value. I display the the following string in a label box to see what is happening and it looks great. However, on the DoCmd a window pops up with the value I selected in the second listbox as the query name. Wow, what is happening?

strTest = "APPosID = " & intPosCrnt & " AND AppPos!Status = " & strStat

.DoCmd.OpenReport "AppPosStatus", acViewNormal, , WhereCondition:="" & strTest
Reply With Quote
  #2 (permalink)  
Old 05-16-02, 15:42
EdwardP EdwardP is offline
Registered User
 
Join Date: Jan 2002
Location: Toronto
Posts: 21
What's this AppPos!Status in your where condition. I don't think it should be there. Remove AppPos!.

-Ed
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On