this is the part of my code causing the error....
...
Dim tGC
Set tGC = CurrentDb.OpenRecordset("tblGCdata") <----
....
This error is intermitant and seems to go away when I open the linked
table in access then close it and try running the code again.
what is the reason behind this and what I can do to eliminate this
error?
...perhaps some initial vba code to open and close the table?
Set tGC = CurrentDb.OpenRecordset("tblGCdata", dbOpenDynaset, dbSeeChanges)
--
Sylvain Lafontaine, ing.
MVP - Windows Live Platform
Blog/web site: http://coding-paparazzi.sylvainlafontaine.com
Independent consultant and remote programming for Access and SQL-Server
(French)
"Max Right" <risky...@gmail.com> wrote in message
news:1a6a9963-c543-4fe9...@n39g2000prj.googlegroups.com...
I tried adding these options and as soon as I include that I get a
complie error saying variable "dbOpenDynaset" not defined, if I delete
it it say the same thing for "dbSeeChanges"
i am not declaring tCG properly, I'm not too sure about vba syntax so
my declaration for tGC is:
Dim tGC
.. could it be something else?
dbOpenDynaset: 2
dbSeeChanges: 512
--
Sylvain Lafontaine, ing.
MVP - Windows Live Platform
Blog/web site: http://coding-paparazzi.sylvainlafontaine.com
Independent consultant and remote programming for Access and SQL-Server
(French)
"Max Right" <risky...@gmail.com> wrote in message
news:a11df9ba-8eeb-4b73...@g1g2000pre.googlegroups.com...