navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

INSERT statement problem using variables

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> INSERT statement problem using variables
Page: [1]
 
Guest


 
INSERT statement problem using variables - 3/5/2001 15:25:00   
Jeesh! I know this can't be that difficult! ;-)

What am I doing Wrong!?

The Insert SQL statement:

SQL = "INSERT INTO test.txt VALUES(strName,strStreet,strCity,strState,strZip)"

NOTE: the variables come from a firm and are DIM'd prior to the statement.

The Error:

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E10)
[Microsoft][ODBC Text Driver] Too few parameters. Expected 5.


Help!
Larry

Elecia

 

Posts: 68
From: orlando
Status: offline

 
RE: INSERT statement problem using variables - 3/5/2001 15:39:00   
Is test.txt the name of the table or is it actully a text box?

(in reply to Guest)
Guest


 
RE: INSERT statement problem using variables - 3/5/2001 15:44:00   
The DB is a text DB and the table is test.txt It has something to do with the syntax of the VALUES(xxxxx) variables, it works fine with direct input,

SQL = "INSERT INTO test.txt VALUES('Name','Street','City','State','Zip')"

This yields the text,ie: 'Name'(single for double quotes here), into the data fields in the record.


(in reply to Guest)
Spooky

 

Posts: 26597
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: INSERT statement problem using variables - 3/5/2001 18:47:00   
Did my email help?

Im a bit lost on the talk of single vs double quotes too.

All quotes should be single

------------------
Spooky
"I am Spooky of Borg. Prepare to be assimilated, babycakes!"
Subscribe to OutFront News
Database / DRW Q & A
The Spooky Login!


(in reply to Guest)
Guest


 
RE: INSERT statement problem using variables - 3/5/2001 21:26:00   
Yep, Spooky, thanks that was it. Thank you as Elicia!

(in reply to Guest)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> INSERT statement problem using variables
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts