If this is what MySQL is set to...
SELECT DISTINCTROW qryVehiclesNowners5.SerialNum,
qryVehiclesNowners5.VDescr, qryVehiclesNowners5.Owner,
qryVehiclesNowners5.VehicleJobID , tblVehicleJobs.Reclaimed,
tblVehicleJobs.VSaleID, tblVehicleJobs.ENF262Written FROM
qryVehiclesNowners5 INNER JOIN tblVehicleJobs ON
qryVehiclesNowners5.VehicleJobID = tblVehicleJobs.VehicleJobID WHERE
(tblVehicleJobs.Reclaimed=No AND tblVehicleJobs.VSaleID Is Null AND
tblVehicleJobs.ENF262Written=True);
What exactly would cause the following lines to cause the following
error when run?
10 Set dbs = CurrentDb
20 Set rst = dbs.OpenRecordset(MySQL)
Error: The following unexpected error occurred in Sub Form_Open,
line #20, CBF on frmVehicleChooserForm.
3061: "Too few parameters. Expected 5."
Is my query too complex? 11 3317
"MLH" <CR**@NorthState.net> schreef in bericht news:6p********************************@4ax.com... If this is what MySQL is set to... SELECT DISTINCTROW qryVehiclesNowners5.SerialNum, qryVehiclesNowners5.VDescr, qryVehiclesNowners5.Owner, qryVehiclesNowners5.VehicleJobID , tblVehicleJobs.Reclaimed, tblVehicleJobs.VSaleID, tblVehicleJobs.ENF262Written FROM qryVehiclesNowners5 INNER JOIN tblVehicleJobs ON qryVehiclesNowners5.VehicleJobID = tblVehicleJobs.VehicleJobID WHERE (tblVehicleJobs.Reclaimed=No AND tblVehicleJobs.VSaleID Is Null AND tblVehicleJobs.ENF262Written=True); What exactly would cause the following lines to cause the following error when run? 10 Set dbs = CurrentDb 20 Set rst = dbs.OpenRecordset(MySQL) Error: The following unexpected error occurred in Sub Form_Open, line #20, CBF on frmVehicleChooserForm. 3061: "Too few parameters. Expected 5." Is my query too complex?
When did you get this error? 2 minutes ago?
If you do a Google search in cdma for "too few parameters" you will get approx. 1,280 answers
Arno R
do the follwing
5 debug.Print MySql 10 Set dbs = CurrentDb 20 Set rst = dbs.OpenRecordset(MySQL)
When you get the error, note how the sql is in the debug window. Take that
sql, and cut/paste it into a new blank query.
does it run?
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada pl*****************@msn.com http://www.members.shaw.ca/AlbertKallal
Sorry, Arno, but most of those hits on google seem to generalize
about references to controls on a form. My SQL has none of that
so I am still in the dark as much as I was 2 minutes ago, as you
mentioned. Do you know what to do in a case like that. I'm not
asking you to do a google search, as I am perfectly capable of
doing that. I'm asking you if you know the answer? Do you?
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx When did you get this error? 2 minutes ago? If you do a Google search in cdma for "too few parameters" you will get approx. 1,280 answers
Arno R
Arno, just out of curiousity. Do you see any parameters in that query?
Cause I don't. For that reason, I have no reason to suspect that
parameters are involved. I could be wrong. There are no bangs in
the syntax. That's the reason for the OP. I'm sure someone knows
the answer in this NG. I think its fair to assume that if it stumps me
and it is stumping you - it is probably stumping someone else out
there right now.
The fact is, I first encountered this error about 2 wks ago. I'm not
sure that it matters that it was 2 weeks ago or 2 minutes ago. I
believe you meant that if I do a Google search in cdma for "too few
parameters" you will get approx. 1,280 documents to read - not
1,280 answers. Right?
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx When did you get this error? 2 minutes ago? If you do a Google search in cdma for "too few parameters" you will get approx. 1,280 answers
Arno R
"MLH" <CR**@NorthState.net> schreef in bericht news:jv********************************@4ax.com... Sorry, Arno, but most of those hits on google seem to generalize about references to controls on a form. My SQL has none of that so I am still in the dark as much as I was 2 minutes ago, as you mentioned. Do you know what to do in a case like that. I'm not asking you to do a google search, as I am perfectly capable of doing that. I'm asking you if you know the answer? Do you? xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx When did you get this error? 2 minutes ago? If you do a Google search in cdma for "too few parameters" you will get approx. 1,280 answers
Arno R
I think I was too quick with my response to you.
I expected a lot of field references and/or parameters in your SQL.
Since I don't see that, I would guess your SQL is not correct (Jet has trouble finding your missspelled fields?)
Did you follow Albert's advice?
Arno R
Good thinking, Albert. I would have taken me another 2
weeks to figure that one out! The query that was embedded
in there (qryVehiclesNowners5) was a QBF and I had completely
forgotten about it. The second I pasted it in there & ran it - just
like you said - I knew instantly! I guess that's the difference
between MVP's and hackers like me. I should-a-caught that
one, really. But I've been puzzling over it long enough.
Many Thx.
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx do the follwing
5 debug.Print MySql 10 Set dbs = CurrentDb 20 Set rst = dbs.OpenRecordset(MySQL)
When you get the error, note how the sql is in the debug window. Take that sql, and cut/paste it into a new blank query.
does it run?
"MLH" <CR**@NorthState.net> schreef in bericht news:gc********************************@4ax.com... Arno, just out of curiousity. Do you see any parameters in that query? Cause I don't. For that reason, I have no reason to suspect that parameters are involved. I could be wrong. There are no bangs in the syntax. That's the reason for the OP. I'm sure someone knows the answer in this NG. I think its fair to assume that if it stumps me and it is stumping you - it is probably stumping someone else out there right now. The fact is, I first encountered this error about 2 wks ago. I'm not sure that it matters that it was 2 weeks ago or 2 minutes ago. I believe you meant that if I do a Google search in cdma for "too few parameters" you will get approx. 1,280 documents to read - not 1,280 answers. Right? xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
The second and also the third hit in Google for "Too few parameters" would have given you the very same answer that Albert gave ...
You don't have to read ALL hits always ;-)
Arno R
True enough. I google a fair amount - although, probably not as
much as some. I'm a lower-tech access user than most in this NG
and quite frankly, I don't understand much of what I read when
googling. BTW, help me out here - I'm not sure what is meant by
CDMA??? When I go to google, I generally use this URL... http://groups.google.com/group/comp.databases.ms-access
I don't know how to get to CDMA?
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxx The second and also the third hit in Google for "Too few parameters" would have given you the very same answer that Albert gave ... You don't have to read ALL hits always ;-)
Arno R
"MLH" <CR**@NorthState.net> schreef in bericht news:lq********************************@4ax.com... True enough. I google a fair amount - although, probably not as much as some. I'm a lower-tech access user than most in this NG and quite frankly, I don't understand much of what I read when googling. BTW, help me out here - I'm not sure what is meant by CDMA??? When I go to google, I generally use this URL... http://groups.google.com/group/comp.databases.ms-access I don't know how to get to CDMA? xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxx
Your URL is alright.
cdma is where you post a very lot of questions ... ;-)
Arno R
MLH wrote: If this is what MySQL is set to... SELECT DISTINCTROW qryVehiclesNowners5.SerialNum, qryVehiclesNowners5.VDescr, qryVehiclesNowners5.Owner, qryVehiclesNowners5.VehicleJobID , tblVehicleJobs.Reclaimed, tblVehicleJobs.VSaleID, tblVehicleJobs.ENF262Written FROM qryVehiclesNowners5 INNER JOIN tblVehicleJobs ON qryVehiclesNowners5.VehicleJobID = tblVehicleJobs.VehicleJobID WHERE (tblVehicleJobs.Reclaimed=No AND tblVehicleJobs.VSaleID Is Null AND tblVehicleJobs.ENF262Written=True);
What exactly would cause the following lines to cause the following error when run?
10 Set dbs = CurrentDb 20 Set rst = dbs.OpenRecordset(MySQL)
Error: The following unexpected error occurred in Sub Form_Open, line #20, CBF on frmVehicleChooserForm. 3061: "Too few parameters. Expected 5."
Is my query too complex?
I see in another post that you have solved this problem, but you didn't
really clarify why you had the problem. If I could guess I would say
that since your SQL above has a query in the FROM that it is THAT query
that has the parameters that can't be found. IS that what happened? Or
was it a different issue?
--
Bri
Your suspicion is correct. That's EXACTLY what happened. I consider
it an oversight. Just wasn't clear to me at the time of the error
notice. Thx.
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx I see in another post that you have solved this problem, but you didn't really clarify why you had the problem. If I could guess I would say that since your SQL above has a query in the FROM that it is THAT query that has the parameters that can't be found. IS that what happened? Or was it a different issue? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: deko |
last post by:
This sub pulls Outlook Appointments into a table.
The problem is I want to limit the import to Location = Boston
I'm not sure how to code that into the For... To loop - As it is now, I get
the...
|
by: Susan Bricker |
last post by:
Greetings Experts ...
I have a routine that is invoked when a command button is clicked. The
button is located in a form that is tied to a table of Project records.
Each Project Record has 0 to...
|
by: lgo |
last post by:
I have read several variations of this topic posted on this news group.
However I was not able to find the answer for my problem.
I am trying to build code (see below) to update a large single...
|
by: MLH |
last post by:
I copied the following code snippet from A97 HELP. Am
getting an error at compile time suggesting there's a problem
with the first line (compile error, user-defined type not defined).
It is likely...
|
by: MLH |
last post by:
A runtime error 13 (type mismatch) occurs running the following line:
Set rst = dbs.OpenRecordset("tblMyTable", dbOpenTable)
What would be the most likely place I would find the source of the...
|
by: jbsfe |
last post by:
I have "Spilt" my database and the "lookup" and "seek" methods that
previously worked, no longer do. I have learnd from reviewing the
posts that the "lookup" and "Seek" methods cannot be used on...
|
by: Rico |
last post by:
Hello,
I have an application that I'm converting to Access 2003 and SQL Server 2005
Express. The application uses extensive use of DAO and the SEEK method on
indexes. I'm having an issue when...
|
by: destr19 |
last post by:
Dim cstsname As String
Dim cstpc As String
Dim rstresult As Recordset 'recordset to store output
Dim mydatabase As Database
'Variable to store user entered surname
Me.Text20.SetFocus...
|
by: Constantine AI |
last post by:
I am trying to code a SAVE button which will automatically change numerous rows of data within a table. I have created the appropriate query and checked it works when the form is open. However the...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
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...
|
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...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
| |