Open form to a specific patient

raphael99

Registered User.
Local time
Today, 10:03
Joined
Apr 6, 2015
Messages
126
I have a Form (FRM_SEarchMulti) with a list box (SearchResults). This list box has an ID for patient.
I have a form (FRMMeseCorrentePrestazioni) with a command button that open another form (FRMPrestazioni).

I would like to be able to open FRMPrestazioni based on the specific record of listbox SearchResults.

I used
Code:
DoCmd.OpenForm "FRMPrestazioni", , , "ID = " & FRM_SearchMulti.SearchResults.ID

with no success
 
What does that mean exactly raphael99?

I got error 424 object required. Modified this way:
Code:
DoCmd.OpenForm "FRMPrestazioni", , , "ID = " & FRM_SearchMulti.SearchResults.Column(6)

still error 424
 
@Baldy. Is not a subform!
Code:
DoCmd.OpenForm "FRMPrestazioni", , , "ID = " & FRM_SearchMulti!SearchResults.Column(6)

still error 424 object required
 
@Baldy. Is not a subform!
Code:
DoCmd.OpenForm "FRMPrestazioni", , , "ID = " & FRM_SearchMulti!SearchResults.Column(6)

still error 424 object required

I didn't say it was.

Forms!FRM_SearchMulti!SearchResults.Column(6)
 

Users who are viewing this thread

Back
Top Bottom