create a find control that will find a record and fill in the nee.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

create a find control that will find a record then fill in the specific files
in a form
 
Hi Joe

Provideing that you have made your form right you should be able to just "go
to" the record and the fields will autofill.

Create an unbound combo (call it Find Record) and place this behind the
AfterUpdate

Private Sub FindRecord_AfterUpdate()
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[IDField] = " & Str(Me![FindRecord])
Me.Bookmark = rs.Bookmark
End Sub

This will located the unique IDfield (primary) and go to that record.

Hope this helps
 
create a find control that will find a record then fill in the specific files
in a form

Forms don't contain "files".

Could you explain what you are trying to accomplish, and describe your
current database structure? What do you want to "fill in", and where
will the contents come from?

John W. Vinson[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

Back
Top