Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old September 6th, 2005, 10:52 AM
Registered User
 
Join Date: Jul 2005
Location: , , .
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.

Reply With Quote
  #2 (permalink)  
Old September 13th, 2005, 12:57 AM
Friend of Wrox
 
Join Date: Jul 2005
Location: Oklahoma City, OK, USA.
Posts: 150
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Have you compacted the database with the tables?

Boyd
"Hi Tech Coach"
Access Based Accounting/Business Solutions developer.
http://www.officeprogramming.com
Reply With Quote
  #3 (permalink)  
Old September 13th, 2005, 12:01 PM
Registered User
 
Join Date: Jul 2005
Location: , , .
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.

Reply With Quote
  #4 (permalink)  
Old September 13th, 2005, 12:12 PM
Friend of Wrox
 
Join Date: Jan 2005
Location: Kansas City, Missouri, USA.
Posts: 471
Thanks: 0
Thanked 1 Time in 1 Post
Default

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
Reply With Quote
  #5 (permalink)  
Old September 13th, 2005, 12:21 PM
Friend of Wrox
 
Join Date: Jan 2005
Location: Kansas City, Missouri, USA.
Posts: 471
Thanks: 0
Thanked 1 Time in 1 Post
Default

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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
SSIS XML as a destination? GethWho BOOK: Professional SQL Server 2005 Integration Services ISBN: 0-7645-8435-9 3 September 21st, 2010 03:51 PM
Update Many Destination while using One Source jase2007 SQL Server DTS 0 September 20th, 2007 05:08 AM
Query must have at least one destination field Spydermine Access 2 May 3rd, 2007 07:47 AM
Multiple field query PLUS Durwood Edwards Access 5 July 26th, 2005 09:08 AM
Script Component as Destination bmains SQL Server 2000 0 May 23rd, 2005 01:30 PM



All times are GMT -4. The time now is 06:02 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.