Learn how to add records with an SQL statement instead of a Recordset. Here are
two examples. One will use a query string and the other gets the info
from a form. Both examples include an example of a DSN-LESS
connection.
Learn how to add records with an SQL statement instead of a Recordset. Here are
two examples. One will use a query string and the other gets the info
from a form. Both examples include an example of a DSN-LESS
connection.
This example is for using forms and makes some assumptions. Be sure to
make the necessary changes.
That you want to use a physical path to the database.
That you use the Access driver, your database is named myDB and
the path is on the E drive.
That the table in your database is named myTable and the fields
are name and email.
That the fields in the form are named textbox1 and textbox2.