Soldato
- Joined
- 17 Apr 2003
- Posts
- 6,518
- Location
- hOme
hi guys
i'm having a bit of trouble with a database ive got in access here
i've got a from which has 2 values:
CD_ID
Vinyl_ID
and a button which should load a vinyl information form if the Vinyl_ID has a value in it and the CD_ID value is null and vice versa
i have Remix_ID determining what information to show on the vinyl or cd info form although thats irrelevant
what syntax do i need to use in the visual basic expression builder? i have this but it doesnt work
please help
i'm having a bit of trouble with a database ive got in access here
i've got a from which has 2 values:
CD_ID
Vinyl_ID
and a button which should load a vinyl information form if the Vinyl_ID has a value in it and the CD_ID value is null and vice versa
i have Remix_ID determining what information to show on the vinyl or cd info form although thats irrelevant
what syntax do i need to use in the visual basic expression builder? i have this but it doesnt work

Code:
Private Sub Command20_Click()
Dim stDocName As String
Dim stLinkCriteria As String
CD_ID.SetFocus
If CD_ID.Text = Null Then
stDocName = "frm_vinylinfo"
stLinkCriteria = "[RemixID]=" & Me![RemixID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
Else
stDocName = "frm_cdinfo"
stLinkCriteria = "[RemixID]=" & Me![RemixID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
End If
End Sub
please help
