Subforms are no way in this case. I had written a small macro, which sets variables from current record.
Code: Select all
REM ***** BASIC *****
Global MyCurrrentID
Global MyCurrrentPLATNE
Sub Main
End Sub
Sub Show_ID
MsgBox "RECORD ID: " + MyCurrrentID + Chr$(10) + "PLATNE: " + MyCurrrentPLATNE
End Sub
Sub SET_MyCurrrentID_From_Form (oEvent As Object)
Dim IoForm
IoForm = oEvent.Source
MyCurrrentID = IoForm.Columns.getbyName("ID").Value
MyCurrrentPLATNE = IoForm.Columns.getbyName("PLATNE").Value
End Sub
SET_MyCurrrentID_From_Form is as Form event (third from end, i am not sure how to translate back to en)
This seems to work fine, global values are usable in the whole form
Question is now clear: How (if possible) to use these variables in that listbox query.
When i try simply
request fails with "parameter marker not allowed" error
Please have somebody any idea how to do this better
or
prepare desired listbox using another way on this level?