kosmokramer
Programmer
I am working on some forms, and when I try the "Add New Record" method that pops up as one of the options in the actions for a new command button, it does not work for my form. Some fields it does not even let me enter information into at all. So, what I am going to do is create a whole new form for inserting into the database, leave the fields unbound and just use an Insert to grab the information off the form and insert it.
So, how do you write an Insert statement for the form? I know how to do one in Visual Basic 6.0, but since this version of VB is in Access (and is with the database already), you wouldn't have to write a connectionstring and all that stuff would you? Also, would the insert statement be the same? Something like this:
So, how do you write an Insert statement for the form? I know how to do one in Visual Basic 6.0, but since this version of VB is in Access (and is with the database already), you wouldn't have to write a connectionstring and all that stuff would you? Also, would the insert statement be the same? Something like this:
Code:
Insert into myTable (firstRow, secondRow, thirdRow) Values (firstField.text, secondField.text, thirdField.text)