|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I have a vb form with various text boxes and I wan't to be able to Insert the data within these text boxes into my table. The code below will insert constant values. However, I need to replace these values with variable names..Does anybody know
the correct cyntax....Please 'dbs.Execute " INSERT INTO tablename " & "(FirstName,LastName) VALUES " & "('Harry', 'Washington');" |
|
#2
|
||||
|
||||
|
Code:
dbs.Execute "INSERT INTO tableName (FirstName, LastName) VALUES('" & txtFname.Text & "', '" & txtLname.Text & "');"
|
|
#3
|
|||
|
|||
|
Thank's very much......
|
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > Help with Inserting data into a database |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|