P
Pulse
the problem is that i need to open the forms with all the
records where klasID = number(1) and all the records
where klasID = number(2) .. the 'and' part of the
statement works fine, but the or won't work.
anyone got an idea?
This doesn't work:
----------------------------
CODE
----------------------------
stLinkCriteria = "[KlasID]=" & "nummer(1)" & "Or [KlasID]
=" & nummer(2) & "And [VakId] =" & Me.VakID
DoCmd.OpenForm "frmPuntenKlasVakLeerling", , ,
stLinkCriteria
----------------------------
Another problem is that it are not always 2 criteria for
the klasID i just used this as an example ... the number
of criteria is max 5
but if i can get it to work with 2 criteria it will
probably no problem to find a way to use the orher
criteria
records where klasID = number(1) and all the records
where klasID = number(2) .. the 'and' part of the
statement works fine, but the or won't work.
anyone got an idea?
This doesn't work:
----------------------------
CODE
----------------------------
stLinkCriteria = "[KlasID]=" & "nummer(1)" & "Or [KlasID]
=" & nummer(2) & "And [VakId] =" & Me.VakID
DoCmd.OpenForm "frmPuntenKlasVakLeerling", , ,
stLinkCriteria
----------------------------
Another problem is that it are not always 2 criteria for
the klasID i just used this as an example ... the number
of criteria is max 5
but if i can get it to work with 2 criteria it will
probably no problem to find a way to use the orher
criteria