S
Sharda via AccessMonster.com
Hi all,
I have started to work with ms acess for like a week now. so have pretty much
very limited know how in ms access programming. and I'm stuck with this
problem for soemtime now..
I am trying to add a new record to a table and here is what I have so far:
I have one table that has 3 columns in it and a autonumber which is the
primary key.
I have a form that has query1 as RecordSource. The query1 is simple Select of
all columns from the table.
the form has a combo box, a text box for column1, textbox for column2,
textbox for column3.
i have a 'New record' button on the form to add a new record to the table.
the wizard-generated code is:
DoCmd.GoToRecord , , acNewRec
I fill in the values in the textboxes and click on the 'New Record' button.
but this is overwriting the very first record in the table.
I looked at several posts on the web for a solution, but couldn't get this to
work.
I really need some help with this!!!!
TIA
I have started to work with ms acess for like a week now. so have pretty much
very limited know how in ms access programming. and I'm stuck with this
problem for soemtime now..
I am trying to add a new record to a table and here is what I have so far:
I have one table that has 3 columns in it and a autonumber which is the
primary key.
I have a form that has query1 as RecordSource. The query1 is simple Select of
all columns from the table.
the form has a combo box, a text box for column1, textbox for column2,
textbox for column3.
i have a 'New record' button on the form to add a new record to the table.
the wizard-generated code is:
DoCmd.GoToRecord , , acNewRec
I fill in the values in the textboxes and click on the 'New Record' button.
but this is overwriting the very first record in the table.
I looked at several posts on the web for a solution, but couldn't get this to
work.
I really need some help with this!!!!
TIA