Error Msg.

C

capinvest

I am trying to set up a button that will look at the
current client record, find the clients ID number and then
print a client specific report. I have the following code
behind the button:

DoCmd.OpenReport "Situation", acViewPreview, , "[main].
[ID] = " & Me![ID]

I get the following error when I try to use the button:

Extra ) in query expression '([main].[ID] = )'.

Any help with this problem will be very appreciated.
Thanks.
 
C

capinvest

Thank you, that solved my problem. That is a huge weight
lifted off my shoulders. Thanks again.

-----Original Message-----
Try simply "[ID] = " & Me![ID]
--
Steve Arbaugh
ACG Soft
http://ourworld.compuserve.com/homepages/attac-cg

capinvest said:
I am trying to set up a button that will look at the
current client record, find the clients ID number and then
print a client specific report. I have the following code
behind the button:

DoCmd.OpenReport "Situation", acViewPreview, , "[main].
[ID] = " & Me![ID]

I get the following error when I try to use the button:

Extra ) in query expression '([main].[ID] = )'.

Any help with this problem will be very appreciated.
Thanks.


.
 

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