D
darrel
I'm trying to delete a record in a table:
Dim strConnect As String =
System.Configuration.ConfigurationSettings.AppSettings("myConnectionString")
Dim strChk = "DELETE FROM we_admin_users WHERE UserID='" & myUserID & "'"
Dim objConnect As New System.Data.OleDb.OleDbConnection(strConnect)
objConnect.Open()
Dim objCommand As New System.Data.OleDb.OleDbCommand(strChk, objConnect)
objCommand.ExecuteNonQuery()
objConnect.Close()
objCommand.Dispose()
But when I run this, I get this error:
" Invalid object name 'we_admin_users' "
I can run this same function against a different table, and it executes
fine. I can also take the query from above and use it directly in Enterprise
Manager, and it executes fine. Both tables have the same permissions.
So, I'm stumped as to what it things the problem is. What else should I look
at?
-Darrel
Dim strConnect As String =
System.Configuration.ConfigurationSettings.AppSettings("myConnectionString")
Dim strChk = "DELETE FROM we_admin_users WHERE UserID='" & myUserID & "'"
Dim objConnect As New System.Data.OleDb.OleDbConnection(strConnect)
objConnect.Open()
Dim objCommand As New System.Data.OleDb.OleDbCommand(strChk, objConnect)
objCommand.ExecuteNonQuery()
objConnect.Close()
objCommand.Dispose()
But when I run this, I get this error:
" Invalid object name 'we_admin_users' "
I can run this same function against a different table, and it executes
fine. I can also take the query from above and use it directly in Enterprise
Manager, and it executes fine. Both tables have the same permissions.
So, I'm stumped as to what it things the problem is. What else should I look
at?
-Darrel