I am facing problems to get values from a subform for further use in Visual Basic code.
When I give Set Focus to my Form I can only read values from that Form and not from the subform.
I have tried to do it with Macro SetValue and VB code direct. Both give an error from the MS JET engine.
In my SubForm (listmode)I have 2 or 3 lines (records), I want to read the values from the first record.
The main form has data like ; Patientname, Address ....
The Subform has data like : First appointmentdate, Second appointmentdate .
By pressing a button on the main Form I start a report Conformation in whitch I need the value First appointmentdate.
Can someone help me with a macro or VB code how to do that?
I am familiar with Access but have limited experience with VB (just started 2 month ago)
Best regards Gerard van Beek
When I give Set Focus to my Form I can only read values from that Form and not from the subform.
I have tried to do it with Macro SetValue and VB code direct. Both give an error from the MS JET engine.
In my SubForm (listmode)I have 2 or 3 lines (records), I want to read the values from the first record.
The main form has data like ; Patientname, Address ....
The Subform has data like : First appointmentdate, Second appointmentdate .
By pressing a button on the main Form I start a report Conformation in whitch I need the value First appointmentdate.
Can someone help me with a macro or VB code how to do that?
I am familiar with Access but have limited experience with VB (just started 2 month ago)
Best regards Gerard van Beek