|
|
 |
| Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Access section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

September 6th, 2005, 11:52 AM
|
|
Registered User
|
|
Join Date: Jul 2005
Location: , , .
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Help-Query must have at least 1 destination field
Hello,
I have a table with 181 fields and I have the following select query:
"Select * from Table1 where [Field1]=[Please enter 1: ] and [Field2]=[Please enter 2];"
This query works fine for sometime and then it gives the following error message:
"Error # 3066 and Error description: Query must have at least one
destination field."
The sql code in query is replaced by "Select *"
Kindly reply and help me to get a solution to this problem.
Thanks,
Suraj.
|

September 13th, 2005, 01:57 AM
|
|
Friend of Wrox
|
|
Join Date: Jul 2005
Location: Oklahoma City, OK, USA.
Posts: 150
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Have you compacted the database with the tables?
Boyd
"Hi Tech Coach"
Access Based Accounting/Business Solutions developer.
http://www.officeprogramming.com
|

September 13th, 2005, 01:01 PM
|
|
Registered User
|
|
Join Date: Jul 2005
Location: , , .
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Yes, I did compact the database with the table. Still the query runs for some time then it loses its sql code and I get the error # 3066.
Thanks.
|

September 13th, 2005, 01:12 PM
|
|
Friend of Wrox
|
|
Join Date: Jan 2005
Location: Kansas City, Missouri, USA.
Posts: 471
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Surajguru,
How big are your tables?
How many columns are there on your table?
Are you running the query from a button or directly?
Kevin
dartcoach
|

September 13th, 2005, 01:21 PM
|
|
Friend of Wrox
|
|
Join Date: Jan 2005
Location: Kansas City, Missouri, USA.
Posts: 471
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Surajguru,
Sorry about that. I see that you are retrieving 181 columns. I don't know for sure, but you may be running out of memory. 181 columns on a single table is huge! Can you retrieve lesser amounts of data? I.E. - retrieve 60 columns at a time, then join the results together?
Don't know if this might help.
Kevin
dartcoach
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |