D
Don Starnes
This must be a basic question: how do I write data to a new record in a table
using VBA?
I have 3 tables (Table 1, Table 2, Table 3) and a form which shows fields
from tables 1 and 2.
I have a list box on the form which lists records from Table 1.
Fields from a record on Table 2 are displayed on my form.
I have a Table 3 with two fields.
I want to use a button to write the following to Table 3:
- the index number for the Table 1 record selected in the list box
- the index number for the current Table 2 record being viewed on the form
these would be written to a new record in the two fields of Table 3.
I can't figure out the basic code for writing data to a table. Can you give
an example?
Thanks!
Don
using VBA?
I have 3 tables (Table 1, Table 2, Table 3) and a form which shows fields
from tables 1 and 2.
I have a list box on the form which lists records from Table 1.
Fields from a record on Table 2 are displayed on my form.
I have a Table 3 with two fields.
I want to use a button to write the following to Table 3:
- the index number for the Table 1 record selected in the list box
- the index number for the current Table 2 record being viewed on the form
these would be written to a new record in the two fields of Table 3.
I can't figure out the basic code for writing data to a table. Can you give
an example?
Thanks!
Don