|
-
Apr 27th, 2000, 06:42 AM
#1
I get an error when I try to execute the following SQL statement. If I execute each select statement by it's self, it runs fine. When I put them together with a union I get an error. The tables exist and the names are spelled correctly. I can also run the select statment from the SQL Server Query Analyzer without a problem.
SQLString = "SELECT SALEID FROM PRESALES UNION ALL SELECT SALEID FROM SALES"
Set SearchRec = AutoSalonDb.OpenRecordset(SQLString, dbOpenSnapshot)
Error Message
Run-time error '3078'
The microsoft jet database engine can not find the input table or query 'SELECT SALEID FROM PRESALES'. Make sure it exists and that its name is spelled correctly.
-
Apr 27th, 2000, 09:42 PM
#2
try
SQLString = "SELECT PRESALES.SALEID FROM PRESALES UNION ALL SELECT SALES.SALEID FROM SALES"
-
Apr 28th, 2000, 10:38 PM
#3
Thanks for the suggestion but that didn't work. I even tried useing fully qualified names.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|