maxmangion
AWF VIP
- Local time
- Today, 05:45
- Joined
- Feb 26, 2003
- Messages
- 2,805
i have 2 unbound combo boxes in a form. in the first combo box i have the following in the record source:
SELECT tblAlbums.AlbumID, tblAlbums.SongsAmount FROM tblAlbums WHERE tblAlbums.AlbumID=Forms!frmViews!Combo5;
{where combo5 is another combo in the form which displays all available albums}
in the second unbound combo i have this in the control source:
=DCount("Song","qryViewAlbums")
so far this works fine ... example if i have 3 songs from an album of 15 songs, the unbound combos displays 15 and 3
now i want that when both combos are equal i would get a msgbox stating that it is a full album. i was thinking of the following code:
if the above is correct, pls which event shall i put it in ?
Thank you!
SELECT tblAlbums.AlbumID, tblAlbums.SongsAmount FROM tblAlbums WHERE tblAlbums.AlbumID=Forms!frmViews!Combo5;
{where combo5 is another combo in the form which displays all available albums}
in the second unbound combo i have this in the control source:
=DCount("Song","qryViewAlbums")
so far this works fine ... example if i have 3 songs from an album of 15 songs, the unbound combos displays 15 and 3
now i want that when both combos are equal i would get a msgbox stating that it is a full album. i was thinking of the following code:
Code:
if cint(Me.AlbumAmount) = cint(Me.SongsAmount) Then
Msgbox "Full Album"
End If
if the above is correct, pls which event shall i put it in ?
Thank you!