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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ListBox Problem

Status
Not open for further replies.

vilmarie

Programmer
Feb 10, 2004
41
PR
HY: I modify a code that find in one page. I create a listBox in a form that contain the list of all the record that have my table "Information" I need that when I select one record in this list and click over this or over the button Show Record , open a form SL Data Entry with the information of this record. The problem is that when I open the form appear an error: The OpenForm action was canceled.


How I can resolve these?

The code is:


Private Sub ShowRecord_Click()
'Find a selected record, then close the search dialog box

DoCmd.OpenForm "SL Data Entry", , , _
"[Information.Number]=" & "'" & Me.lstSearch.Column(7) & "'"

'Close the dialog box
DoCmd.Close acForm, "prueba"

End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top