Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

going directly to a selected record from another form

Status
Not open for further replies.

Shift838

IS-IT--Management
Jan 27, 2003
987
US
I have a form that shows a list box of items. These items contain:

incidentnumber (this is an autonumber field and is the primary key for the tablle called tblincident)

txtshortdescription (Text field)
blnclosed (yes/no)

I populate a listbox called lstopenincidents with the above. I want to be able to select a particular incident in the listbox and click a command button to open another form to edit the incident with all the information from the tblincident table. I want when the form opens to go directly to the incident I selected by the txtInumber (incident number field).

I am not sure how to do this, does anyone have any suggestions?

Thanks...
 
Have a look at the 4th argument of the the DoCmd.OpenForm method.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top