i'd like to do it based on record number. For example, if someone chooses a record number it will fill in the other boxes in the form that go along w/that record number. Like the requestor the item number, and so on.
Both actually. The user will fill out the items that are missing, but pull up the rqst # and have it autofill areas from that record and then input information that all will go into a new record.
a) form with record number and then subform for the rest of the fields. Then on your main form you could have a find combo box that when selecting the appropriate # could go to that record and they could finish filling out, and also choose to fill out a new record related to that number if need be
b) New record with combo to select record id. Within that combo box, have all the other fields set to 0" width. Then when the user selects, within VBA insert the column values into the forms fields
Have a combo box that's recordsource is something like this (you can use the builder [...] to accomplish too)
SELECT recordno, field1, field2, field3, field4 from tblTableName
Then for the column widths, set them to 1",0",0",0"
Then on the AfterUpdate event of the combo box, do:
On error resume next 'in case of null
me.field1 = me.combobox.column(1)
me.field2 = me.combobox.column(2)
me.field3 = me.combobox.column(3)
(and so on)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.