473,386 Members | 1,830 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,386 software developers and data experts.

Repost: To Dev Ashish (Concat query)

Roy
I used your Concat query in one of my application,with a lil change.I
am trying to concatenate a text field using a number field as the key
field.
Application:
fConcatFld("BaseSelection_tbl"*,"EventID","Applica tionName","*long",[EventID]).

The code bombs at the line, Case "Long", "Integer", "Double":
'AutoNumber is Type Long
loSQL = loSQL & "[" & stForFld & "] = " & vForFldVal
The error is # 3061,missing parameter.Expected 1.I tried several ways
,but in vain.
I need help.
Thanks,
Roy

Nov 13 '05 #1
3 1875
The most likely cause is that you've mistyped one (or more) of
"BaseSelection_tbl"*, "EventID", or "ApplicationName": you've left out
spaces, underscores, or something like that.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

"Roy" <pr********@yahoo.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
I used your Concat query in one of my application,with a lil change.I
am trying to concatenate a text field using a number field as the key
field.
Application:
fConcatFld("BaseSelection_tbl"*,"EventID","Applica tionName","*long",[EventID]).

The code bombs at the line, Case "Long", "Integer", "Double":
'AutoNumber is Type Long
loSQL = loSQL & "[" & stForFld & "] = " & vForFldVal
The error is # 3061,missing parameter.Expected 1.I tried several ways
,but in vain.
I need help.
Thanks,
Roy
Nov 13 '05 #2
Roy
Doug,
Thanks for the reply.Infact i went through the typos,spaces and
other things before i posted here.Infact i changed the table name to
just "BaseSelection" too.

Thanks,

Roy

Douglas J. Steele wrote:
The most likely cause is that you've mistyped one (or more) of
"BaseSelection_tbl"*, "EventID", or "ApplicationName": you've left out
spaces, underscores, or something like that.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

"Roy" <pr********@yahoo.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
I used your Concat query in one of my application,with a lil change.I
am trying to concatenate a text field using a number field as the key
field.
Application:
fConcatFld("BaseSelection_tbl"*,"EventID","Applica tionName","*long",[EventID]).

The code bombs at the line, Case "Long", "Integer", "Double":
'AutoNumber is Type Long
loSQL = loSQL & "[" & stForFld & "] = " & vForFldVal
The error is # 3061,missing parameter.Expected 1.I tried several ways
,but in vain.
I need help.


Thanks,
Roy


Nov 13 '05 #3

What "lil change" did you make to the code?

Also, set a breakpoint at the OpenRecordset line, and do a Print on the
SQL string being used. This will give you something to work with, and
no doubt show where the "missing parameter" is. (Probably a mistyped
field name.)

Roy wrote:
I used your Concat query in one of my application,with a lil change.I
am trying to concatenate a text field using a number field as the key
field.
Application:
fConcatFld("BaseSelection_tbl"*,"EventID","Applica tionName","*long",[EventID]).
The code bombs at the line, Case "Long", "Integer", "Double":
'AutoNumber is Type Long
loSQL = loSQL & "[" & stForFld & "] = " & vForFldVal
The error is # 3061,missing parameter.Expected 1.I tried several ways
,but in vain.
I need help.


Nov 13 '05 #4

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

Similar topics

8
by: May | last post by:
Hi, My question is: How to concat values from several lines (the same column) to only one value. For example: We have table SGMENT with one column: NAME (varchar2(50)). We would like to have...
2
by: Stephan Bour | last post by:
I repost this since I know how much some list people hate html posts ;-) Hi, I have a query page were users can check previous orders according to a number of parameters. The query results are...
2
by: Lincoln Yeoh | last post by:
Sorry for the repost. Just wondering if anyone has a workaround for 7.4? At 11:25 AM 1/27/2004 -0500, Tom Lane wrote: >Martijn van Oosterhout <kleptog@svana.org> writes: > > I'm afraid I'll have...
3
by: nickdevx | last post by:
Damn it this "illegal mix of collashit" messages are driving me nuts!! What's wrong with the following statement? SELECT userid, CONCAT(username,' / ',firstname,' ',lastname,' / ', email,...
4
by: Martin Evans | last post by:
Hi, I'm getting: DBD::DB2::db do failed: SQL0440N No authorized routine named "CONCAT" of type "FUNCTION" having compatible arguments was found. SQLSTATE=42884 for some SQL like this:
17
by: ramadu | last post by:
I know its a sin to use strings, lets skip that part... Which of these is faster and uses less memory? String.Format("SomeValue='{0}'", m_Value); or String.Concat("SomeValue='", m_Value,...
2
by: cubix | last post by:
I'm trying to run a query in MySQL Query Browser that will concat 3 fields together to form a single date format. This part I don't have a problem with: SELECT CONCAT(`Field12`, '/', `Field13`,...
4
by: waqasahmed996 | last post by:
hi to all i have three fields of name in database named as fnam,mname,lname. fname and lname is mandatory field and mname is optional. i want to make a search query on name ...
3
by: shanmugamit | last post by:
HI, i need solution for dynamic query in stored procedure without concat. How to create dynamic query like pagination passing limit value. IF category='artist' THEN IF lim=0 THEN SET...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
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,...
0
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...
0
Oralloy
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.