p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > Microsoft Office > Access and Access VBA > Access
I forgot my password Register Now
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 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.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 6th, 2005, 11: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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old 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
Default

Have you compacted the database with the tables?

Boyd
"Hi Tech Coach"
Access Based Accounting/Business Solutions developer.
http://www.officeprogramming.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old September 13th, 2005, 01: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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #4 (permalink)  
Old September 13th, 2005, 01:12 PM
Friend of Wrox
Points: 1,566, Level: 16
Points: 1,566, Level: 16 Points: 1,566, Level: 16 Points: 1,566, Level: 16
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2005
Location: Kansas City, Missouri, USA.
Posts: 471
Thanks: 0
Thanked 0 Times in 0 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #5 (permalink)  
Old September 13th, 2005, 01:21 PM
Friend of Wrox
Points: 1,566, Level: 16
Points: 1,566, Level: 16 Points: 1,566, Level: 16 Points: 1,566, Level: 16
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2005
Location: Kansas City, Missouri, USA.
Posts: 471
Thanks: 0
Thanked 0 Times in 0 Posts
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

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 2 June 15th, 2008 11:08 PM
Update Many Destination while using One Source jase2007 SQL Server DTS 0 September 20th, 2007 06:08 AM
Query must have at least one destination field Spydermine Access 2 May 3rd, 2007 08:47 AM
Multiple field query PLUS Durwood Edwards Access 5 July 26th, 2005 10:08 AM
Script Component as Destination bmains SQL Server 2000 0 May 23rd, 2005 02:30 PM



All times are GMT -4. The time now is 07:59 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc