E
Ed Dror
Hi there
This code is from Microsoft Library
Dim dbs As Database
Dim qdf As QueryDef
' Modify this line to include the path to Northwind
' on your computer.
Set dbs = OpenDatabase("Northwind.mdb")
dbs.Execute "UPDATE Employees " _
& "SET ReportsTo = 5 " _
& "WHERE ReportsTo = 2;"
dbs.Close
Now I have
1 Form with 1 Text box and 1 botton
Everything is fine but what if this is a btnUpdate_Click() event on a form
And the "SetReportTo = 5" is a txtBox instead
Ho do you insert into sql string parameter from text box in a Form?
Thanks,
Ed Dror
This code is from Microsoft Library
Dim dbs As Database
Dim qdf As QueryDef
' Modify this line to include the path to Northwind
' on your computer.
Set dbs = OpenDatabase("Northwind.mdb")
dbs.Execute "UPDATE Employees " _
& "SET ReportsTo = 5 " _
& "WHERE ReportsTo = 2;"
dbs.Close
Now I have
1 Form with 1 Text box and 1 botton
Everything is fine but what if this is a btnUpdate_Click() event on a form
And the "SetReportTo = 5" is a txtBox instead
Ho do you insert into sql string parameter from text box in a Form?
Thanks,
Ed Dror