> I am trying to use the following code to grab data from a table to
> create a variable, but it keeps blowing up. Any suggestions would be
[quoted text clipped - 20 lines]
>
> ......................
Change that line from
> rs.Open sql, ActiveConnection, adOpenDynamic, adLockOptimistic
to:
rs.Open sql, CurrentProject.Connection, _
adOpenDynamic, adLockOptimistic
Also, bear in mind that a line like this:
> Set myform = [Form_Project Issue Log]
will only work if the form "Project Issue Log" has a code module, and it
will open the form if it isn't open. I prefer to make form references
via the Forms collection, like this:
Set myform = Forms![Project Issue Log]

Signature
Dirk Goldgar, MS Access MVP
www.datagnostics.com
(please reply to the newsgroup)
TIML - 20 Sep 2005 16:35 GMT
Thank you very much Dirk !!!!
It worked like a charm. It is nice to know that people will give up their
own time to help others that they have never even met before :)
Tim
>> I am trying to use the following code to grab data from a table to
>> create a variable, but it keeps blowing up. Any suggestions would be
[quoted text clipped - 39 lines]
>
> Set myform = Forms![Project Issue Log]