Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

INSERT STATEMENT...help 1

Status
Not open for further replies.

graphix03

Technical User
Oct 8, 2003
189
0
0
US
Hi, I'm trying to create an insert
sql statement in a form in vb6.

the insert statement works for rest
but not for the column where its
the value is: Insurance Company.

I tried

insert....
'" & [Insurance Company] & "',"
....
but it keeps gives error message of Type Mismatch.

what is wrong with it? any input would be greatly
appreciated.
 
Never mind, i just got it. thank you.
 
The Value is "insurance company" or the field name is "insurance company"?

if it's value
Code:
INSERT INTO tbl ( fldname ) VALUES ( 'insurance company' )

if it's field name
Code:
INSERT INTO tbl (insurance company) VALUES ( 'BIG Insurance Corp.' )
 
Thanks Golom, you're right. thanks for your input.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top