Switchboard does not work

pepegot

Registered User.
Local time
Today, 07:21
Joined
Feb 20, 2006
Messages
39
Error Message:

Run-time error '-2147024769 (800700f)':
Method 'Connection' of object' _ CurrentProject'failed

Debug:
' Open the table of Switchboard Items, and find ' the first item for this Switchboard Page.
Set con = Application.CurrentProject.Connection 'error is to left as indicated by Access)

stSql = "SELECT * FROM [Switchboard Items]"
stSql = stSql & " WHERE [ItemNumber] > 0 AND [SwitchboardID]=" & Me![SwitchboardID]
stSql = stSql & " ORDER BY [ItemNumber];"
Set rs = CreateObject("ADODB.Recordset")
rs.Open stSql, con, 1 ' 1 = adOpenKeyset

Something must be screwed up in the program. A reinstall did not help.
Can you please?
 

Users who are viewing this thread

Back
Top Bottom