NXMold
Technical User
- Jul 22, 2008
- 104
I am using some code to add a record to a table, but it pops up with a warning about appending 1 row... I don't want the user to see that and have the option to cancel. Can I surpress this message?
strSQL = "INSERT INTO UserTable ([NetworkName], [WorkstationID], [DisplayName]) VALUES ('" & NetworkUserName & "', '" & Environ("COMPUTERNAME") & "', '*" & NetworkUserName & "*')"
DoCmd.RunSQL strSQL
strSQL = "INSERT INTO UserTable ([NetworkName], [WorkstationID], [DisplayName]) VALUES ('" & NetworkUserName & "', '" & Environ("COMPUTERNAME") & "', '*" & NetworkUserName & "*')"
DoCmd.RunSQL strSQL