Hi All,
been trying to figure this out..
i would like Company name from current open CustomerF form Company field to go in EquipmentF form CompanyID field once i press add equipment button on CustomerF form.....i would also like it to be a new record
i have done this so far...but is not working the way i would like
Code:
private sub addequipmentbutton_click()
docmd.openform "EquipmentF",,,"company = '" & company & "'",,acDialog
end sub
what i have noticed
if the company has equipment added to my equipment table then when i click add equipment button on the current CustomerF form the equipment form has the correct company name, but it show the first record.
if its a new customer i am adding details for or a company with no equipment and i go to enter their equipment, then click add equipment button then the EquipmentF form opens as a new blank record with no company name
is there a way to sort this the way i would like it to work?
thanks
peter