Help with get current record on different ids... (1 Viewer)

haavar

Registered User.
Local time
Today, 08:57
Joined
Jun 26, 2006
Messages
48
I need help to get current record with different ids:
PHP:
Dim strDocName As String
Dim strWhere As String
    strDocName = "16kanaler"
    strWhere = "[skjema_16_gr1_ID]=" & Me!skjema_16_gr1_ID
    DoCmd.OpenReport strDocName, acViewPreview, , strWhere
How can I use more Ids in the wherecondition? I want to get the current record for skjema_16_gr1_ID and skjema_16_gr2_ID, not only the first.

Please help me...

Håvar
 

Bobadopolis

No I can't fix it dammit!
Local time
Today, 07:57
Joined
Oct 6, 2005
Messages
77
I think something like:
Code:
strWhere = "[skjema_16_gr1_ID] =  " & Me!skjema_16_gr1_ID & " And [skjema_16_gr2_ID] = " & Me!skjema_16_gr2_ID

Bobadopolis
 
Last edited:

haavar

Registered User.
Local time
Today, 08:57
Joined
Jun 26, 2006
Messages
48
Thanks...

Thanks for help! It worked!
 

Users who are viewing this thread

Top Bottom