D
Drew
I am really new to this upsizing wizard, and now I'm in a bind. I upsized
an mdb to SQL Server 2000. It created the adp file, but when it is run it
gives me the following error,
Run-time error '91':
Object variable or With block variable not set
If I click on Debug, it highlights the following code in yellow,
Set rst = dbs.OpenRecordset(strSQL)
The rest of the code looks like this,
' Open the table of Switchboard Items, and find
' the first item for this Switchboard Page.
Set dbs = CurrentDb()
strSQL = "SELECT * FROM [Switchboard Items]"
strSQL = strSQL & " WHERE [ItemNumber] > 0 AND [SwitchboardID]=" &
Me![SwitchboardID]
strSQL = strSQL & " ORDER BY [ItemNumber];"
Set rst = dbs.OpenRecordset(strSQL)
What is the deal here? It looks like it doesn't know where to go to find
the Switchboard Items, but I'm not sure how to tell it where to look.
Thanks,
Drew
an mdb to SQL Server 2000. It created the adp file, but when it is run it
gives me the following error,
Run-time error '91':
Object variable or With block variable not set
If I click on Debug, it highlights the following code in yellow,
Set rst = dbs.OpenRecordset(strSQL)
The rest of the code looks like this,
' Open the table of Switchboard Items, and find
' the first item for this Switchboard Page.
Set dbs = CurrentDb()
strSQL = "SELECT * FROM [Switchboard Items]"
strSQL = strSQL & " WHERE [ItemNumber] > 0 AND [SwitchboardID]=" &
Me![SwitchboardID]
strSQL = strSQL & " ORDER BY [ItemNumber];"
Set rst = dbs.OpenRecordset(strSQL)
What is the deal here? It looks like it doesn't know where to go to find
the Switchboard Items, but I'm not sure how to tell it where to look.
Thanks,
Drew