I have the following code which in one program works fine, but i am now experiencing "Invalid object name 'dbo.mpe' and cannot get around this, am i missing something or can anyone see whats causing the issue?? i have verified all references and security. Thanks
Dim Conn As ADODB.Connection
Dim rs As New ADODB.Recordset
Dim strSQL As String
Set Conn = CurrentProject.Connection
Set rs = New ADODB.Recordset
strSQL = "Select * from dbo.mpe"
rs.Open strSQL, Conn, adOpenKeyset
rs.MoveFirst
Do Until rs.EOF
Dim strhdr1 As String
strhdr1 = rs![nom1]
Dim strhdr2 As String
strhdr2 = rs![nom2] & ";" & rs![dirE]
Dim strhdr3 As String
strhdr3 = rs![hr1E] & ";" & rs![he2E]