meyya1180
-
Total Posts
:
2
- Scores: 0
-
Reward points
:
0
- Joined: 11/13/2008
-
Status: offline
|
msaccess error
Monday, December 08, 2008 8:58 PM
( permalink)
this is the piece of code i am using to insert values in to my msacces database.i get the error "No value given for one or more required parameters". can anyone help me . the database contains 1 table namely "table1 " and table contains 2 fields id and name. dbpath="D:\MR20594\databases\db2.mdb" Set conn = CreateObject("ADODB.Connection") conn.provider="Microsoft.Jet.OLEDB.4.0" conn.open dbpath sqlquery = "Insert INTO table1 Values(3,Jack)" Set rs = CreateObject("ADODB.Recordset") rs.open sqlquery,conn
|
|
|
|
ebgreen
-
Total Posts
:
8227
- Scores: 98
-
Reward points
:
0
- Joined: 7/12/2005
-
Status: offline
|
RE: msaccess error
Tuesday, December 09, 2008 3:12 AM
( permalink)
I think this: sqlquery = "Insert INTO table1 Values(3,Jack)" may need to be this: sqlquery = "Insert INTO table1 Values(3,'Jack')"
|
|
|
|
meyya1180
-
Total Posts
:
2
- Scores: 0
-
Reward points
:
0
- Joined: 11/13/2008
-
Status: offline
|
RE: msaccess error
Wednesday, December 10, 2008 10:45 PM
( permalink)
ebgreen ,thanks for the assistance .i'll try it out .
|
|
|
|