G
Guest
I have ODBC Connection to db and I'm trying to insert fldpatacct into a table
dbo_Anesth where the value is equal to the value on a form. The reason I do
it this way is that I look at several other fields before deciding to actuall
insert the record.
Dim mepatacct As String
Dim strSQLpat As String
mepatacct = Me.Text1.Value
strSQLpat = "INSERT INTO dbo_Anesth(fldpatacct)VALUES('" & mepatacct &
"')"
DoCmd.RunSQL , strSQLpat
DoCmd.OpenForm StDocName, , , stLinkCriteria
DoCmd.Close acForm, stDocName2
dbo_Anesth where the value is equal to the value on a form. The reason I do
it this way is that I look at several other fields before deciding to actuall
insert the record.
Dim mepatacct As String
Dim strSQLpat As String
mepatacct = Me.Text1.Value
strSQLpat = "INSERT INTO dbo_Anesth(fldpatacct)VALUES('" & mepatacct &
"')"
DoCmd.RunSQL , strSQLpat
DoCmd.OpenForm StDocName, , , stLinkCriteria
DoCmd.Close acForm, stDocName2