Paul, below is the coding you provided to me.
I'm not certain what I've done wrong...I added the coding to the AddNew command button, however, I get a "compile error - user defined type not defined" and the first line
of coding is highlighted in blue.
I'm new to the board, so I'm not for sure if I was suppose to post a new message or reply to your answer in my original request.
Thanks again for any help you can offer.
Seawave
__________________________________________________________
Paul wrote:
Dim rst as DAO.Recordset
Dim frm as Form
Set frm = Forms!YourFormName
Set rst = CurrentDb.OpenRecordset("Cable Table",dbOpenDyanset)
rst.AddNew
rst!CableName = frm.textboxname
rst!NextField = frm.nextfield
rst!SomeOtherField = frm.someotherfield
rst.Update
frm.textboxname = Null
frm.nextfield = Null
frm.someotherfield = Null
set frm = Nothing
set rst = Nothing
_________________________________________________________
I'm not certain what I've done wrong...I added the coding to the AddNew command button, however, I get a "compile error - user defined type not defined" and the first line
of coding is highlighted in blue.
I'm new to the board, so I'm not for sure if I was suppose to post a new message or reply to your answer in my original request.
Thanks again for any help you can offer.
Seawave
__________________________________________________________
Paul wrote:
Dim rst as DAO.Recordset
Dim frm as Form
Set frm = Forms!YourFormName
Set rst = CurrentDb.OpenRecordset("Cable Table",dbOpenDyanset)
rst.AddNew
rst!CableName = frm.textboxname
rst!NextField = frm.nextfield
rst!SomeOtherField = frm.someotherfield
rst.Update
frm.textboxname = Null
frm.nextfield = Null
frm.someotherfield = Null
set frm = Nothing
set rst = Nothing
_________________________________________________________