code required for an update event in a form

  • Thread starter Surinder Kumar Arora ITS GM EAST MTNL Delhi
  • Start date
S

Surinder Kumar Arora ITS GM EAST MTNL Delhi

Dear Sir,
I want code in a form for update event for a field named telephone having
eight character number property to search for all records telephone field
and return no action if no record is having that value
and if any other record is having that value it should go to that
record(latest record if more than one records are having that value)
regards
 
M

Michel Walsh

Hi,


Use the combo box wizard and make it generates a combo box to navigate
to a record with the value actually in the combo box. The wizard generates
code to find the first match. If the order of the recordset define your
first-to-last sequence, change its VBA code from a FindFirst to FindLast.



Hoping it may help,
Vanderghast, Access MVP
 

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

Top