C
cinnie
hi to all
I was interested in answers given to a posting a day or two ago on how to
store a value, for later use, in an unbound table.
Say we have mySQL = "UPDATE tableName SET tableName.[fieldName] ...." etc
The responders suggested using code like...
CurrentDb.Execute mySQL, dbFailOnError
I tried this in my application and it works great, but I have two questions.
a) I had been doing the same thing with code like...
DoCmd.RunSQL mySQL
Is there any difference? Does one method have any advantages over the
other?
b) When using CurrentDb.Execute mySQL, dbFailOnError, I get a "variable not
defined" compile error. (it doesn't like the 'dbFailOnError'). I can get
rid of this error by removing 'Option Explicit' from the module's header, but
I'm not sure why I should have to do this.
Thanks in advance for any comments
I was interested in answers given to a posting a day or two ago on how to
store a value, for later use, in an unbound table.
Say we have mySQL = "UPDATE tableName SET tableName.[fieldName] ...." etc
The responders suggested using code like...
CurrentDb.Execute mySQL, dbFailOnError
I tried this in my application and it works great, but I have two questions.
a) I had been doing the same thing with code like...
DoCmd.RunSQL mySQL
Is there any difference? Does one method have any advantages over the
other?
b) When using CurrentDb.Execute mySQL, dbFailOnError, I get a "variable not
defined" compile error. (it doesn't like the 'dbFailOnError'). I can get
rid of this error by removing 'Option Explicit' from the module's header, but
I'm not sure why I should have to do this.
Thanks in advance for any comments