AccessDevJunior
Programmer
hya,
i have a main form with a subform, the main form recordsource is from 'tblReferenceNumber' and the subform recordsource is from 'tblCallRecord' the two tables have a one to many relationship.
i want an unbound text box on my main form where the user enter's the reference number then clicks 'commandbutton' which searches for that reference number and opens up the record
Else
if the record is not found then add new record.
(after searching and successfully finding a record i wish the subform to be able to updated).
i am having trouble writing the code for the command button. i have been experimenting with 'filter' and 'dlookup' but had no look. if anyone could help me in designing the best way to do this it would be a great help?
i have a main form with a subform, the main form recordsource is from 'tblReferenceNumber' and the subform recordsource is from 'tblCallRecord' the two tables have a one to many relationship.
i want an unbound text box on my main form where the user enter's the reference number then clicks 'commandbutton' which searches for that reference number and opens up the record
Else
if the record is not found then add new record.
(after searching and successfully finding a record i wish the subform to be able to updated).
i am having trouble writing the code for the command button. i have been experimenting with 'filter' and 'dlookup' but had no look. if anyone could help me in designing the best way to do this it would be a great help?