
04-07-2004, 02:54 PM
|
|
Freshman
|
|
Join Date: Feb 2004
Posts: 34
|
|
basic INSERT
|
Dim conn As ADODB.Connection
Set conn = New ADODB.Connection
conn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\D&M.mdb" & ";Persist Security Info=False"
conn.CursorLocation = adUseClient
conn.Open
conn.Execute ("INSERT INTO RestZone(PhoneNumber) VALUES('2342342')")
conn.Close
Set conn = Nothing
my understanding of the SQL statement: RestZone = Name of table; PhoneNumber = Column in table; '2342342' = the value stored in table RestZone in Column PhoneNumber.. is this correct? If so, why do i keep getting "unknown field name: 'PhoneNumber'" it is spelled correctly.
/any ideas? thanks
|
|