Hi guys,
what Iam doing is Updating a backend sql table using front end form.
Set db = CurrentDb
stSQL = "Update Lkp_Store1 set Facility_Number='" & (Text8) & "',[Station_Id]='" & (Text0) & "'," & _
"[Zone]='" & UCase(Text2) & "',[Type]='" & (Text4) & "'," & _
"[UserId]='" & fGetUserName() & "',[UpdatedDateTime]='" & Now() & "' " & _
" where SID = " & Me!Combo7.Value & ""
DoCmd.RunSQL stSQL
When i use above code and table name as Lkp_Store1 it works fine.
When i use Lkp_Store_testing it says
Run time error 3073
Operation requires Updatable query.
Can any one tell me how to handle the table names like this table_abc_szy
I tried [Lkp_Store_testing] but it didn't worked.
Thanks,
Sam.
what Iam doing is Updating a backend sql table using front end form.
Set db = CurrentDb
stSQL = "Update Lkp_Store1 set Facility_Number='" & (Text8) & "',[Station_Id]='" & (Text0) & "'," & _
"[Zone]='" & UCase(Text2) & "',[Type]='" & (Text4) & "'," & _
"[UserId]='" & fGetUserName() & "',[UpdatedDateTime]='" & Now() & "' " & _
" where SID = " & Me!Combo7.Value & ""
DoCmd.RunSQL stSQL
When i use above code and table name as Lkp_Store1 it works fine.
When i use Lkp_Store_testing it says
Run time error 3073
Operation requires Updatable query.
Can any one tell me how to handle the table names like this table_abc_szy
I tried [Lkp_Store_testing] but it didn't worked.
Thanks,
Sam.