A
ashnook_news
In am running Access 2000 and want to write some Visual Basic code to read
and write from a table which is not open (active in anty form).
I have used the commands:
Dim tab_name As String
tab_name = "Activities"
DoCmd.OpenTable tab_name, , acAdd
to open and add a new record to table Activities, now how do I now read and
write to that new open record? Everything I try fails.
For example it has a field called Code1, how do I write to it?
I have tried
Activities!code1 = "fred"
to no avail!
(I am VERY new to Visual Basic and the Access book I have does not seem to
answer my question.)
Thanks
and write from a table which is not open (active in anty form).
I have used the commands:
Dim tab_name As String
tab_name = "Activities"
DoCmd.OpenTable tab_name, , acAdd
to open and add a new record to table Activities, now how do I now read and
write to that new open record? Everything I try fails.
For example it has a field called Code1, how do I write to it?
I have tried
Activities!code1 = "fred"
to no avail!
(I am VERY new to Visual Basic and the Access book I have does not seem to
answer my question.)
Thanks