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

A97 error #2246 - can't run uery because the parameter values are too large???

MLH
I have a query (SQL below) that operates on values entered by users
into an unbound form to append a record to tblAdmin. I do not under-
stand the basis for the error. There are some 17 or so data entry
fields on the form housing perhaps 600-700 characters between the
lot of them. Why might Access 97 need to err on such a simple
operation?

SQL:
INSERT INTO tblAdmin (TowCompany, TowCoAddr, TowCoCity, TowCoState,
TowCoZip, TowCoCounty, TowCoPhn, TowCoFax, TowCoEMail,
TowCoOwnerFName, TowCoOwnerLName, UserID, PetitionerType, TowCoTaxID,
RUADealer, PrimaryBsns, ClusterID, NewsPprName, PagerEmail,
AdminNotes) SELECT [Forms]![frmAddNewCustomer]![TowCompany] AS
MyTowCompany, [Forms]![frmAddNewCustomer]![TowCoAddr] AS MyTowCoAddr,
[Forms]![frmAddNewCustomer]![TowCoCity] AS MyTowCoCity,
[Forms]![frmAddNewCustomer]![TowCoState] AS MyTowCoState,
[Forms]![frmAddNewCustomer]![TowCoZip] AS MyTowCoZip,
[Forms]![frmAddNewCustomer]![TowCoCounty] AS MyTowCoCounty,
[Forms]![frmAddNewCustomer]![TowCoPhn] AS MyTowCoPhn,
[Forms]![frmAddNewCustomer]![ClusterFAX] AS MyTowCoFax,
[Forms]![frmAddNewCustomer]![TowCoEMail] AS MyTowCoEMail,
[Forms]![frmAddNewCustomer]![TowCoOwnerFName] AS MyTowCoOwnerFName,
[Forms]![frmAddNewCustomer]![TowCoOwnerLName] AS MyTowCoOwnerLName,
[Forms]![frmAddNewCustomer]![UserID] AS MyUserID,
[Forms]![frmAddNewCustomer]![PetitionerType] AS MyPetitionerType,
[Forms]![frmAddNewCustomer]![TowCoTaxID] AS MyTowCoTaxID,
[Forms]![frmAddNewCustomer]![RUADealer] AS MyRUADealer,
[Forms]![frmAddNewCustomer]![PrimaryBsns] AS MyPrimaryBsns,
[Forms]![frmAddNewCustomer]![ClusterID] AS MyClusterID,
[Forms]![frmAddNewCustomer]![NewsPprName] AS MyNewsPprName,
[Forms]![frmAddNewCustomer]![PagerEmail] AS MyPagerEmail,
[Forms]![frmAddNewCustomer]![AdminNotes] AS MyAdminNotes;
Dec 23 '06 #1
6 1957
have you checked the fields in tblAdmin to see if the FieldSize property of
any Text field is less than the value you're trying to insert - such as
appending a 30-character value into a 25-character field size; or if the
FieldSize property of any Number field is smaller than the value you're
trying to insert - such as appending a Long Integer value into an Integer
field size.

hth
"MLH" <CR**@NorthState.netwrote in message
news:94********************************@4ax.com...
I have a query (SQL below) that operates on values entered by users
into an unbound form to append a record to tblAdmin. I do not under-
stand the basis for the error. There are some 17 or so data entry
fields on the form housing perhaps 600-700 characters between the
lot of them. Why might Access 97 need to err on such a simple
operation?

SQL:
INSERT INTO tblAdmin (TowCompany, TowCoAddr, TowCoCity, TowCoState,
TowCoZip, TowCoCounty, TowCoPhn, TowCoFax, TowCoEMail,
TowCoOwnerFName, TowCoOwnerLName, UserID, PetitionerType, TowCoTaxID,
RUADealer, PrimaryBsns, ClusterID, NewsPprName, PagerEmail,
AdminNotes) SELECT [Forms]![frmAddNewCustomer]![TowCompany] AS
MyTowCompany, [Forms]![frmAddNewCustomer]![TowCoAddr] AS MyTowCoAddr,
[Forms]![frmAddNewCustomer]![TowCoCity] AS MyTowCoCity,
[Forms]![frmAddNewCustomer]![TowCoState] AS MyTowCoState,
[Forms]![frmAddNewCustomer]![TowCoZip] AS MyTowCoZip,
[Forms]![frmAddNewCustomer]![TowCoCounty] AS MyTowCoCounty,
[Forms]![frmAddNewCustomer]![TowCoPhn] AS MyTowCoPhn,
[Forms]![frmAddNewCustomer]![ClusterFAX] AS MyTowCoFax,
[Forms]![frmAddNewCustomer]![TowCoEMail] AS MyTowCoEMail,
[Forms]![frmAddNewCustomer]![TowCoOwnerFName] AS MyTowCoOwnerFName,
[Forms]![frmAddNewCustomer]![TowCoOwnerLName] AS MyTowCoOwnerLName,
[Forms]![frmAddNewCustomer]![UserID] AS MyUserID,
[Forms]![frmAddNewCustomer]![PetitionerType] AS MyPetitionerType,
[Forms]![frmAddNewCustomer]![TowCoTaxID] AS MyTowCoTaxID,
[Forms]![frmAddNewCustomer]![RUADealer] AS MyRUADealer,
[Forms]![frmAddNewCustomer]![PrimaryBsns] AS MyPrimaryBsns,
[Forms]![frmAddNewCustomer]![ClusterID] AS MyClusterID,
[Forms]![frmAddNewCustomer]![NewsPprName] AS MyNewsPprName,
[Forms]![frmAddNewCustomer]![PagerEmail] AS MyPagerEmail,
[Forms]![frmAddNewCustomer]![AdminNotes] AS MyAdminNotes;

Dec 23 '06 #2
MLH <CR**@NorthState.netwrote in
news:94********************************@4ax.com:
I have a query (SQL below) that operates on values entered by users
into an unbound form to append a record to tblAdmin. I do not under-
stand the basis for the error. There are some 17 or so data entry
fields on the form housing perhaps 600-700 characters between the
lot of them. Why might Access 97 need to err on such a simple
operation?

SQL:
INSERT INTO tblAdmin (TowCompany, TowCoAddr, TowCoCity, TowCoState,
TowCoZip, TowCoCounty, TowCoPhn, TowCoFax, TowCoEMail,
TowCoOwnerFName, TowCoOwnerLName, UserID, PetitionerType, TowCoTaxID,
RUADealer, PrimaryBsns, ClusterID, NewsPprName, PagerEmail,
AdminNotes) SELECT [Forms]![frmAddNewCustomer]![TowCompany] AS
MyTowCompany, [Forms]![frmAddNewCustomer]![TowCoAddr] AS MyTowCoAddr,
[Forms]![frmAddNewCustomer]![TowCoCity] AS MyTowCoCity,
[Forms]![frmAddNewCustomer]![TowCoState] AS MyTowCoState,
[Forms]![frmAddNewCustomer]![TowCoZip] AS MyTowCoZip,
[Forms]![frmAddNewCustomer]![TowCoCounty] AS MyTowCoCounty,
[Forms]![frmAddNewCustomer]![TowCoPhn] AS MyTowCoPhn,
[Forms]![frmAddNewCustomer]![ClusterFAX] AS MyTowCoFax,
[Forms]![frmAddNewCustomer]![TowCoEMail] AS MyTowCoEMail,
[Forms]![frmAddNewCustomer]![TowCoOwnerFName] AS MyTowCoOwnerFName,
[Forms]![frmAddNewCustomer]![TowCoOwnerLName] AS MyTowCoOwnerLName,
[Forms]![frmAddNewCustomer]![UserID] AS MyUserID,
[Forms]![frmAddNewCustomer]![PetitionerType] AS MyPetitionerType,
[Forms]![frmAddNewCustomer]![TowCoTaxID] AS MyTowCoTaxID,
[Forms]![frmAddNewCustomer]![RUADealer] AS MyRUADealer,
[Forms]![frmAddNewCustomer]![PrimaryBsns] AS MyPrimaryBsns,
[Forms]![frmAddNewCustomer]![ClusterID] AS MyClusterID,
[Forms]![frmAddNewCustomer]![NewsPprName] AS MyNewsPprName,
[Forms]![frmAddNewCustomer]![PagerEmail] AS MyPagerEmail,
[Forms]![frmAddNewCustomer]![AdminNotes] AS MyAdminNotes;
I've never seen this done where we use a SELECT with the values of Form
fields and have no way of checking to see if it actually works, although
I'd be surprised. I also doubt the aliases are necessary.
I expect a more common syntax is:

INSERT INTO tblAdmin

(
TowCompany,
TowCoAddr,
TowCoCity,
TowCoState,
TowCoZip,
TowCoCounty,
TowCoPhn,
TowCoFax,
TowCoEMail,
TowCoOwnerFName,
TowCoOwnerLName,
UserID,
PetitionerType,
TowCoTaxID,
RUADealer,
PrimaryBsns,
ClusterID,
NewsPprName,
PagerEmail,
AdminNotes)

VALUES

(
Forms![frmAddNewCustomer]![TowCompany],
Forms![frmAddNewCustomer]![TowCoAddr],
Forms![frmAddNewCustomer]![TowCoCity],
Forms![frmAddNewCustomer]![TowCoState],
Forms![frmAddNewCustomer]![TowCoZip],
Forms![frmAddNewCustomer]![TowCoCounty],
Forms![frmAddNewCustomer]![TowCoPhn],
Forms![frmAddNewCustomer]![ClusterFAX],
Forms![frmAddNewCustomer]![TowCoEMail],
Forms![frmAddNewCustomer]![TowCoOwnerFName],
Forms![frmAddNewCustomer]![TowCoOwnerLName],
Forms![frmAddNewCustomer]![UserID]
Forms![frmAddNewCustomer]![PetitionerType],
Forms![frmAddNewCustomer]![TowCoTaxID],
Forms![frmAddNewCustomer]![RUADealer],
Forms![frmAddNewCustomer]![PrimaryBsns],
Forms![frmAddNewCustomer]![ClusterID],
Forms![frmAddNewCustomer]![NewsPprName],
Forms![frmAddNewCustomer]![PagerEmail],
Forms![frmAddNewCustomer]![AdminNotes]
);

I have a vague recollection that if the field list includes all the
updateable fields then

INSERT INTO tblAdmin

VALUES

(
Forms![frmAddNewCustomer]![TowCompany],
Forms![frmAddNewCustomer]![TowCoAddr],
Forms![frmAddNewCustomer]![TowCoCity],
Forms![frmAddNewCustomer]![TowCoState],
Forms![frmAddNewCustomer]![TowCoZip],
Forms![frmAddNewCustomer]![TowCoCounty],
Forms![frmAddNewCustomer]![TowCoPhn],
Forms![frmAddNewCustomer]![ClusterFAX],
Forms![frmAddNewCustomer]![TowCoEMail],
Forms![frmAddNewCustomer]![TowCoOwnerFName],
Forms![frmAddNewCustomer]![TowCoOwnerLName],
Forms![frmAddNewCustomer]![UserID]
Forms![frmAddNewCustomer]![PetitionerType],
Forms![frmAddNewCustomer]![TowCoTaxID],
Forms![frmAddNewCustomer]![RUADealer],
Forms![frmAddNewCustomer]![PrimaryBsns],
Forms![frmAddNewCustomer]![ClusterID],
Forms![frmAddNewCustomer]![NewsPprName],
Forms![frmAddNewCustomer]![PagerEmail],
Forms![frmAddNewCustomer]![AdminNotes]
);

is sufficient but maybe thats just for Inserts based on Selects.
--
Lyle Fairfield

http://www.ffdba.com/toyota/BurlingtonToyotaLease.htm

Dec 23 '06 #3
MLH
Yes, in a way, I did. If I eliminate the text in the last of the
textbox controls on the form, the error does not occur. That
control contained 446-characters which were destined for a
memo type table field. The error seems to suggest not any
one field in violation of the 1024 character limitation - but a
combination of all the query's parameter information. Here's
the actual error message again:

Access can't run the query; the parameter values are too large. The
total length of all the values entered for the parameters cannot
exceed 1024 characters.

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxx

On Sat, 23 Dec 2006 19:01:48 GMT, "tina" <no****@address.comwrote:
>have you checked the fields in tblAdmin to see if the FieldSize property of
any Text field is less than the value you're trying to insert - such as
appending a 30-character value into a 25-character field size; or if the
FieldSize property of any Number field is smaller than the value you're
trying to insert - such as appending a Long Integer value into an Integer
field size.

hth
"MLH" <CR**@NorthState.netwrote in message
news:94********************************@4ax.com.. .
>I have a query (SQL below) that operates on values entered by users
into an unbound form to append a record to tblAdmin. I do not under-
stand the basis for the error. There are some 17 or so data entry
fields on the form housing perhaps 600-700 characters between the
lot of them. Why might Access 97 need to err on such a simple
operation?

SQL:
INSERT INTO tblAdmin (TowCompany, TowCoAddr, TowCoCity, TowCoState,
TowCoZip, TowCoCounty, TowCoPhn, TowCoFax, TowCoEMail,
TowCoOwnerFName, TowCoOwnerLName, UserID, PetitionerType, TowCoTaxID,
RUADealer, PrimaryBsns, ClusterID, NewsPprName, PagerEmail,
AdminNotes) SELECT [Forms]![frmAddNewCustomer]![TowCompany] AS
MyTowCompany, [Forms]![frmAddNewCustomer]![TowCoAddr] AS MyTowCoAddr,
[Forms]![frmAddNewCustomer]![TowCoCity] AS MyTowCoCity,
[Forms]![frmAddNewCustomer]![TowCoState] AS MyTowCoState,
[Forms]![frmAddNewCustomer]![TowCoZip] AS MyTowCoZip,
[Forms]![frmAddNewCustomer]![TowCoCounty] AS MyTowCoCounty,
[Forms]![frmAddNewCustomer]![TowCoPhn] AS MyTowCoPhn,
[Forms]![frmAddNewCustomer]![ClusterFAX] AS MyTowCoFax,
[Forms]![frmAddNewCustomer]![TowCoEMail] AS MyTowCoEMail,
[Forms]![frmAddNewCustomer]![TowCoOwnerFName] AS MyTowCoOwnerFName,
[Forms]![frmAddNewCustomer]![TowCoOwnerLName] AS MyTowCoOwnerLName,
[Forms]![frmAddNewCustomer]![UserID] AS MyUserID,
[Forms]![frmAddNewCustomer]![PetitionerType] AS MyPetitionerType,
[Forms]![frmAddNewCustomer]![TowCoTaxID] AS MyTowCoTaxID,
[Forms]![frmAddNewCustomer]![RUADealer] AS MyRUADealer,
[Forms]![frmAddNewCustomer]![PrimaryBsns] AS MyPrimaryBsns,
[Forms]![frmAddNewCustomer]![ClusterID] AS MyClusterID,
[Forms]![frmAddNewCustomer]![NewsPprName] AS MyNewsPprName,
[Forms]![frmAddNewCustomer]![PagerEmail] AS MyPagerEmail,
[Forms]![frmAddNewCustomer]![AdminNotes] AS MyAdminNotes;
Dec 23 '06 #4
hmm, okay. if Lyle's suggestion doesn't take care of it, you could try
running the SQL statement from VBA, as

Dim strSQL As String

strSQL = "INSERT INTO tblAdmin (TowCompany, " _
& "TowCoAddr, TowCoCity, TowCoState, " _
& "TowCoZip, TowCoCounty, TowCoPhn, " _
& "TowCoFax, TowCoEMail, TowCoOwnerFName, " _
& "TowCoOwnerLName, UserID, PetitionerType, " _
& "TowCoTaxID, RUADealer, PrimaryBsns, " _
& "ClusterID, NewsPprName, PagerEmail, " _
& "AdminNotes) SELECT '" & Me!TowCompany _
& "', '" & Me!TowCoAddr & "', '" & Me!TowCoCity _
& "', '" & Me!TowCoState & "', '" & Me!TowCoZip _
& "', '" & Me!TowCoCounty & "', '" & Me!TowCoPhn _
& "', '" & Me!ClusterFAX & "', '" & Me!TowCoEMail _
& "', '" & Me!TowCoOwnerFName & "', '" _
& Me!TowCoOwnerLName & "', '" & Me!UserID _
& "', '" & Me!PetitionerType & "', '" & Me!TowCoTaxID _
& "', '" & Me!RUADealer & "', '" & Me!PrimaryBsns _
& "', '" & Me!ClusterID & "', '" & Me!NewsPprName _
& "', '" & Me!PagerEmail & "', '" & Me!AdminNotes & "'"

the above statement assumes that all fields are Text data type; if any are
Number or Date/Time, you'll have to adjust the syntax accordingly, of
course.

hth
"MLH" <CR**@NorthState.netwrote in message
news:nf********************************@4ax.com...
Yes, in a way, I did. If I eliminate the text in the last of the
textbox controls on the form, the error does not occur. That
control contained 446-characters which were destined for a
memo type table field. The error seems to suggest not any
one field in violation of the 1024 character limitation - but a
combination of all the query's parameter information. Here's
the actual error message again:

Access can't run the query; the parameter values are too large. The
total length of all the values entered for the parameters cannot
exceed 1024 characters.

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxx

On Sat, 23 Dec 2006 19:01:48 GMT, "tina" <no****@address.comwrote:
have you checked the fields in tblAdmin to see if the FieldSize property
of
any Text field is less than the value you're trying to insert - such as
appending a 30-character value into a 25-character field size; or if the
FieldSize property of any Number field is smaller than the value you're
trying to insert - such as appending a Long Integer value into an Integer
field size.

hth
"MLH" <CR**@NorthState.netwrote in message
news:94********************************@4ax.com...
I have a query (SQL below) that operates on values entered by users
into an unbound form to append a record to tblAdmin. I do not under-
stand the basis for the error. There are some 17 or so data entry
fields on the form housing perhaps 600-700 characters between the
lot of them. Why might Access 97 need to err on such a simple
operation?

SQL:
INSERT INTO tblAdmin (TowCompany, TowCoAddr, TowCoCity, TowCoState,
TowCoZip, TowCoCounty, TowCoPhn, TowCoFax, TowCoEMail,
TowCoOwnerFName, TowCoOwnerLName, UserID, PetitionerType, TowCoTaxID,
RUADealer, PrimaryBsns, ClusterID, NewsPprName, PagerEmail,
AdminNotes) SELECT [Forms]![frmAddNewCustomer]![TowCompany] AS
MyTowCompany, [Forms]![frmAddNewCustomer]![TowCoAddr] AS MyTowCoAddr,
[Forms]![frmAddNewCustomer]![TowCoCity] AS MyTowCoCity,
[Forms]![frmAddNewCustomer]![TowCoState] AS MyTowCoState,
[Forms]![frmAddNewCustomer]![TowCoZip] AS MyTowCoZip,
[Forms]![frmAddNewCustomer]![TowCoCounty] AS MyTowCoCounty,
[Forms]![frmAddNewCustomer]![TowCoPhn] AS MyTowCoPhn,
[Forms]![frmAddNewCustomer]![ClusterFAX] AS MyTowCoFax,
[Forms]![frmAddNewCustomer]![TowCoEMail] AS MyTowCoEMail,
[Forms]![frmAddNewCustomer]![TowCoOwnerFName] AS MyTowCoOwnerFName,
[Forms]![frmAddNewCustomer]![TowCoOwnerLName] AS MyTowCoOwnerLName,
[Forms]![frmAddNewCustomer]![UserID] AS MyUserID,
[Forms]![frmAddNewCustomer]![PetitionerType] AS MyPetitionerType,
[Forms]![frmAddNewCustomer]![TowCoTaxID] AS MyTowCoTaxID,
[Forms]![frmAddNewCustomer]![RUADealer] AS MyRUADealer,
[Forms]![frmAddNewCustomer]![PrimaryBsns] AS MyPrimaryBsns,
[Forms]![frmAddNewCustomer]![ClusterID] AS MyClusterID,
[Forms]![frmAddNewCustomer]![NewsPprName] AS MyNewsPprName,
[Forms]![frmAddNewCustomer]![PagerEmail] AS MyPagerEmail,
[Forms]![frmAddNewCustomer]![AdminNotes] AS MyAdminNotes;

Dec 24 '06 #5
MLH
The syntax below looked promising. So, I made a new TEST
form and tried the syntax below (cannot be represented in design
view, by the way. Same identical error was returned.

INSERT INTO tblAdmin

VALUES

(
Forms![frmAddNewCustomerTEST]![TowCompany],
Forms![frmAddNewCustomerTEST]![TowCoAddr],
Forms![frmAddNewCustomerTEST]![TowCoCity],
Forms![frmAddNewCustomerTEST]![TowCoState],
Forms![frmAddNewCustomerTEST]![TowCoZip],
Forms![frmAddNewCustomerTEST]![TowCoCounty],
Forms![frmAddNewCustomerTEST]![TowCoPhn],
Forms![frmAddNewCustomerTEST]![ClusterFAX],
Forms![frmAddNewCustomerTEST]![TowCoEMail],
Forms![frmAddNewCustomerTEST]![TowCoOwnerFName],
Forms![frmAddNewCustomerTEST]![TowCoOwnerLName],
Forms![frmAddNewCustomerTEST]![UserID],
Forms![frmAddNewCustomerTEST]![PetitionerType],
Forms![frmAddNewCustomerTEST]![TowCoTaxID],
Forms![frmAddNewCustomerTEST]![RUADealer],
Forms![frmAddNewCustomerTEST]![PrimaryBsns],
Forms![frmAddNewCustomerTEST]![ClusterID],
Forms![frmAddNewCustomerTEST]![NewsPprName],
Forms![frmAddNewCustomerTEST]![PagerEmail],
Forms![frmAddNewCustomerTEST]![AdminNotes]
);
Jan 22 '07 #6
MLH wrote:
The syntax below looked promising. So, I made a new TEST
form and tried the syntax below (cannot be represented in design
view, by the way. Same identical error was returned.

INSERT INTO tblAdmin

VALUES

(
Forms![frmAddNewCustomerTEST]![TowCompany],
Forms![frmAddNewCustomerTEST]![TowCoAddr],
Forms![frmAddNewCustomerTEST]![TowCoCity],
Forms![frmAddNewCustomerTEST]![TowCoState],
Forms![frmAddNewCustomerTEST]![TowCoZip],
Forms![frmAddNewCustomerTEST]![TowCoCounty],
Forms![frmAddNewCustomerTEST]![TowCoPhn],
Forms![frmAddNewCustomerTEST]![ClusterFAX],
Forms![frmAddNewCustomerTEST]![TowCoEMail],
Forms![frmAddNewCustomerTEST]![TowCoOwnerFName],
Forms![frmAddNewCustomerTEST]![TowCoOwnerLName],
Forms![frmAddNewCustomerTEST]![UserID],
Forms![frmAddNewCustomerTEST]![PetitionerType],
Forms![frmAddNewCustomerTEST]![TowCoTaxID],
Forms![frmAddNewCustomerTEST]![RUADealer],
Forms![frmAddNewCustomerTEST]![PrimaryBsns],
Forms![frmAddNewCustomerTEST]![ClusterID],
Forms![frmAddNewCustomerTEST]![NewsPprName],
Forms![frmAddNewCustomerTEST]![PagerEmail],
Forms![frmAddNewCustomerTEST]![AdminNotes]
);
TTBOMK Access/Jet treats expressions such as
Forms![frmAddNewCustomerTEST]![AdminNotes] in the SQL above as
parameters. Each parameter value has a limit of 255 characters. I guess
that the value/text of at least one record's AdminNotes, or other
control, is a string of more than 255 characters.

I almost never use the query design window; it's likely I would have
effected what I think you are trying to do with code as follows:

Dim comma As String
Dim sql As String
Dim singleQuote As String
comma = ","
sql = "INSERT INTO tblAdmin"
singleQuote = "'"

sql = sql & vbNewLine
sql = sql & "VALUES"

sql = sql & vbNewLine
sql = sql & "("

sql = sql & vbNewLine
sql = sql & singleQuote & Forms![frmAddNewCustomerTEST]![TowCompany] &
singleQuote

sql = sql & vbNewLine
sql = sql & comma & singleQuote &
Forms![frmAddNewCustomerTEST]![SomeString] & singleQuote

sql = sql & vbNewLine
sql = sql & comma & Forms![frmAddNewCustomerTEST]![SomeNonString]

etc

sql = sql & vbNewLine
sql = sql & ")"

' just to check in case we get an error
' remove when happy
Debug.Print sql

CurrentDb.Execute sql

In this way I use literal expressions which are not limited to 255
characters rather than parameters. Of course. the whole sql string is
limited to about 65536 characters, but I've never come near that.

Jan 22 '07 #7

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

Similar topics

6
by: jason | last post by:
I am picking up an error message on a straightforward INSERT - do I need an optimistic-type to get this working....here is is the error: Microsoft JET Database Engine error '80004005' Operation...
6
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much...
669
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic...
0
by: DC | last post by:
The problem I'm using the .NET GridView and FormView objects for the first time and im getting the error "An OleDbParameter with ParameterName '@ID' is not contained by this...
6
by: rn5a | last post by:
During registration, users are supposed to enter the following details: First Name, Last Name, EMail, UserName, Password, Confirm Password, Address, City, State, Country, Zip & Phone Number. I am...
7
by: teddarr | last post by:
I have an assignment I've been working on for a few days now. I need some help with the last detail. The program is supposed to create 5 objects with varying floating-point parameter lists. The...
3
by: Trez | last post by:
Hey guys, Am new at using ASP.Net. am having some problems updating my SQL DB. whenever i try i get this Error. Can someone help me? Incorrect syntax near 'nvarchar'. Description: An unhandled...
3
by: =?Utf-8?B?S3VsZGVlcCBWaWpheWt1bWFy?= | last post by:
Language: C#.NET 2.0 Technology: ASP.NET 2.0 Database: Oracle 10g Hi All, Could any one of you please suggest the BEST method to: 1. Fetch data from a very large .csv file (around 8 MB) and...
2
Dormilich
by: Dormilich | last post by:
Hi, I'm testing my classes for a web page and I stumble upon an error I don't have a clue what it means: Error: Fatal error: Can't use method return value in write context in "output.php" on...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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 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.