473,385 Members | 1,409 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Error 3190

An Access97 database I wrote contains a dynamic query whose results get exported
to Excel. I have WindowsXP and Access97, 2000 and XP installed. When I run the
query, it runs trouble free. A customer with Windows98 and Access97 on three
different machines runs the query on any of the three and gets error 3190 Too
Many Fields Defined. To run the dynamic query, fields for the query are picked
from multi-select listboxes. If one selected every field in all the listboxes,
there might be sixty fields. The customer gets this error no matter how many
fields he selects. Help says error 3190 occurs if the query contains more than
255 fields. Does anyone have any ideas what might be causing the error message
to appear?

Thanks!

Steve
Nov 12 '05 #1
2 4716
There has to be an error in the way Access is interpreting your dynamic SQL
statement.

Is there any chance that the user has spaces in his field names, and you
have not included square brackets around them? Any chance the code is
looping too many times? Trying to use criteria on a calculated field instead
of repeating the entire calculation in the WHERE clause?

It would be really instructive if you could Debug.Print the resultant SQL
statement when it fails: are you able to visit the client and do that, or
else send him a little test case that will log the failing query statement?

A97 was thoroughly tested in Win98, so I would be very surprised if that
combination were an issue. Is it possible he has other bad combinations? For
example, is he trying to use DAO 3.6 with A97 instead of DAO 3.51?

This answer feels pretty incomplete, but hopefully it is of some use. 60
fields is certainly not the problem, so the issue must be elsewhere.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Steve" <sp**@nospam.spam> wrote in message
news:RB*****************@newsread2.news.atl.earthl ink.net...
An Access97 database I wrote contains a dynamic query whose results get exported to Excel. I have WindowsXP and Access97, 2000 and XP installed. When I run the query, it runs trouble free. A customer with Windows98 and Access97 on three different machines runs the query on any of the three and gets error 3190 Too Many Fields Defined. To run the dynamic query, fields for the query are picked from multi-select listboxes. If one selected every field in all the listboxes, there might be sixty fields. The customer gets this error no matter how many fields he selects. Help says error 3190 occurs if the query contains more than 255 fields. Does anyone have any ideas what might be causing the error message to appear?

Nov 12 '05 #2
Allen,

Thanks for your reply!

We are both running the same frontend and backend files - works fine for me, he
gets error 3190. My conclusion from this is that the problem is external to the
database. We did check the references!

Steve
"Allen Browne" <Al*********@SeeSig.Invalid> wrote in message
news:40**********************@freenews.iinet.net.a u...
There has to be an error in the way Access is interpreting your dynamic SQL
statement.

Is there any chance that the user has spaces in his field names, and you
have not included square brackets around them? Any chance the code is
looping too many times? Trying to use criteria on a calculated field instead
of repeating the entire calculation in the WHERE clause?

It would be really instructive if you could Debug.Print the resultant SQL
statement when it fails: are you able to visit the client and do that, or
else send him a little test case that will log the failing query statement?

A97 was thoroughly tested in Win98, so I would be very surprised if that
combination were an issue. Is it possible he has other bad combinations? For
example, is he trying to use DAO 3.6 with A97 instead of DAO 3.51?

This answer feels pretty incomplete, but hopefully it is of some use. 60
fields is certainly not the problem, so the issue must be elsewhere.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Steve" <sp**@nospam.spam> wrote in message
news:RB*****************@newsread2.news.atl.earthl ink.net...
An Access97 database I wrote contains a dynamic query whose results get

exported
to Excel. I have WindowsXP and Access97, 2000 and XP installed. When I run

the
query, it runs trouble free. A customer with Windows98 and Access97 on

three
different machines runs the query on any of the three and gets error 3190

Too
Many Fields Defined. To run the dynamic query, fields for the query are

picked
from multi-select listboxes. If one selected every field in all the

listboxes,
there might be sixty fields. The customer gets this error no matter how

many
fields he selects. Help says error 3190 occurs if the query contains more

than
255 fields. Does anyone have any ideas what might be causing the error

message
to appear?


Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: AIM | last post by:
Error in msvc in building inheritance.obj to build hello.pyd Hello, I am trying to build the boost 1.31.0 sample extension hello.cpp. I can not compile the file inheritance.cpp because the two...
5
by: Tony Wright | last post by:
Hi, I am having a problem installing an msi for a web site. The error message I am getting is: "The specified path 'http://mipdev05/features/Fas2' is unavailable. The Internet Information...
1
by: Aravind | last post by:
we have two files: 1. rc4.c (defines one function "create_pin()") 2. MyImpl.c(calling the function "create_pin()"),This implements JNI method. 1.When I am trying to create .dll file with one...
1
by: yanwan | last post by:
I met this problem in executing a c++ project in visual studio. Does anyone have suggestions to resolve "error lnk 2001"? --------------------Configuration: reconstruction - Win32...
5
by: Enos Meroka | last post by:
Hallo, I am a student doing my project in the university.. I have been trying to compile the program using HP -UX aCC compiler, however I keep on getting the following errors. ...
13
by: deko | last post by:
I use this convention frequently: Exit_Here: Exit Sub HandleErr: Select Case Err.Number Case 3163 Resume Next Case 3376 Resume Next
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
2
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.