Simple Pb: Turn off "Enter Parameter Value"

C

Charles

Hello there

was wondering if someone could help me with a little problem. I have a
form with a bunch of List boxes that I want to populate through an sql
query through VBA.

My problem is the following: the sql query is as simple as it gets:

SELECT * FROM tblname WHERE tblname.Fld2=0;

where Fld2 is defined as an integer in the table tblname.

I invariably get a "Enter Parameter Value" for Fld2 when I load the
form and VBA does its work. I understand this is due to filters, i.e.
Access ignores whatever value I set in the WHERE statement and tries
to link it to some other value in the form. Is there any way to turn
that off and to let me define my forms manually?

It looks simple but I can't find the answer on google.

Thanks in advance for any help!
Charles
 
C

Charles

Actually ignore. Found the problem. Apparently Access doesn't like
tblname.Fld2=0, it wants (tblname.Fld2)=0.......
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top