NewMiMi,
It is hard to know, really, since you haven't really given much detail about
what you are doing. But here's a guess... if you are entering a new record
on your form, and then running a query that depends on the value of field(s)
in the newly entered record, you may need to save the record first, since
the query is not able to access the values from that record until it is in
the table. Therefore, perhaps try to put a RunCommand/SaveRecord action at
the beginning of the macro.
--
Steve Schapel, Microsoft Access MVP
"NewMiMi" <(E-Mail Removed)> wrote in message
news:3CE4EAD9-41BB-406F-833F-(E-Mail Removed)...
> You have been a great help so far. I have a problem though. I have
> attached
> the macro to a button on a form. The macro does not work on the first try
> on
> the form, but works on the first try when you manually run the macro. The
> macro will append the ID, from the form, on the second try. Any idea on
> why
> this would happen? Again thank you so much for your help.
>
__________ Information from ESET NOD32 Antivirus, version of virus signature database 4364 (20090824) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com