Access Insert Query

Posted by tecno on Stack Overflow See other posts from Stack Overflow or by tecno
Published on 2010-03-20T04:15:06Z Indexed on 2010/03/20 4:21 UTC
Read the original article Hit count: 296

Filed under:
|
|
|

Hi,

I am using C# to write/read to an Access 2007 Database. The table is ID - AutoNumber [pkey] Fname - Text Lname - Text Address - Text

The query string I Use is

"Insert into TblMain (Fname,Lname,Address) Values ('"+fname+"','"+lname+"','"+adrs+"')"

No errors are returned, the query executes but data is not added to the db.

Inserting to table using which does not have an autonumber data column works perfectly.

What am I missing?

© Stack Overflow or respective owner

Related posts about access

Related posts about insert