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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query from combo box problem

Status
Not open for further replies.

szuccaro

Programmer
Dec 17, 2002
84
US
Hey aLL,
TRying to display a query with the following query:
====================================================

SELECT tickets.*
FROM tickets
WHERE tickets.datein = [Forms]![Form1]![Combo4].value;

=======================================================
I hit the button that runs the query and it either does nothing or just says "you have canceled the previous operation" ????

What am i doing wrong ?

-Steve
 
There is nothing visibly wrong with this query.
What is happening on the form before you click the button?
Did you build the button using the Toolbox wizard?
If not, can you show the code for the button click event.
 
code for the button is pretty simple.
All i do is this:

Me.Combo4.SetFocus

Dim stDocName As String
stDocName = "get_tickets_by_date"

DoCmd.OpenQuery strSQL, acNormal, acEdit
 
I don't see any reference to "strSQL" except in the OpenQuery line. Where is this from?

Duane
MS Access MVP
Find out how to get great answers faq219-2884.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top