form population

  • Thread starter Thread starter ecapox via AccessMonster.com
  • Start date Start date
E

ecapox via AccessMonster.com

i am looking to do 2 things with a form.

1. Edit existing records in a database
2. add new records to the database

I have a combo box, cmbEditAdd, that dictates whether i add a new record or
edit existing records, and i have a combo box, cmbMemoID, where i can select
the memo name of the memo i want to edit.

If i select "edit" from cmbEditAdd, and selcect Tax0702 from cmbMemoID, I
would like all the fields in the form to populate with the data from that
memo. The populated data is dependent on the cmbMemoID combo box.

If i select "add" from cmbEditAdd, i would like form to NOT populate with
anything so that i can enter in this information for the new memo. The
entered information would be stored in the table.

make sense?
 
Hi ecapox...

You could use the docmd.gotorecord acnew method to jump to a new record, and
use docmd.findrecord to move to an existing record.

Put these events in the after update event for the EditNew and ID number
combos respectively.

Damian.
 
awesome. i was adding other things to the docmd.gotorecord and it was giving
me problems.
this works wonders.

Emanuele

Damian said:
Hi ecapox...

You could use the docmd.gotorecord acnew method to jump to a new record, and
use docmd.findrecord to move to an existing record.

Put these events in the after update event for the EditNew and ID number
combos respectively.

Damian.
i am looking to do 2 things with a form.
[quoted text clipped - 14 lines]
make sense?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top