Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Find specific record on form with dataentry set to yes

Posted on 2007-08-01
Medium Priority
Last Modified: 2013-11-28
Hi and thanks in advance for any help.

Can someone please help me with an example code on how to find a specific record in a form with data Entry set to yes.

I have one form called customer details and another form called 0_01mm they both have textboxes called ID that are numbers.

Im using access 2003.

Thanks Rob
Question by:robultra17
  • 3
  • 2
LVL 77

Expert Comment

ID: 19608985
Your question does not make sense to me.
If you have DataEntry set to Yes then the form will not display any records, only a new record template ready for data entry.


Expert Comment

ID: 19611176
If ID is the name of an unbound textbox, you can put this code in the afterupdate of the textbox
Me.RecordsetClone.FindFirst "[ID] = " & Me!ID
Me.Bookmark = Me.RecordsetClone.Bookmark
That will set focus to the record with that ID.

I don't completely understand what you want to do, but if you have multiple records in the "customer details" form for the specified ID you can open the form with a filter set.

Author Comment

ID: 19611716

Yes ive got several records in customer details i want to goto a specific record using the id which is an autonumber, from a form called search.
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.


Accepted Solution

Declan_Basile earned 2000 total points
ID: 19612260
OK, so if I understand you right, you want to type an ID in the form "search", and goto the record with that ID in the form "customer details".  So you can put code similar to this in the "search" form.

Dim frm As Form

set frm = forms![Customer Details]
frm.RecordsetClone.FindFirst "[ID] = " & Me!ID
frm.Bookmark = frm.RecordsetClone.Bookmark

You can trigger this code from the click of a command button.
Did I understand your question correctly?  Is that the information you are looking for?

Author Comment

ID: 19612707
Thanks thats just what i want

I'll test the code and let you know

Thank you

Author Comment

ID: 19623556
Works great


Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
Microsoft Access has a limit of 255 columns in a single table; SQL Server allows tables with over 255 columns, but reading that data is not necessarily simple.  The final solution for this task involved creating a custom text parser and then reading…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question