scouser
Registered User.
- Local time
- Today, 11:50
- Joined
- Nov 25, 2003
- Messages
- 767
I would like to put a check on a field on a form.
The user selects a computer they wish to allocate software to. They then select the Software and finally the license associated to the software.
After they select the license I would like access to query a query!
qryALLOCATED_LICENSE_AVAILABILITY has a field that keeps a running total of the number of licenses that are available for allocation.
I tried
Private Sub cboLicenseID_AfterUpdate()
If (qryALLOCATED_LICENSE_AVAILABILITY.Available <= 0) Then
MsgBox "You must purchase additional licences"
End Sub
I fully expected an error and was not dissapointed as my coding is terrible.
How can I complete the code: End IF...............Else.....
Thanks,
Phil.
The user selects a computer they wish to allocate software to. They then select the Software and finally the license associated to the software.
After they select the license I would like access to query a query!
qryALLOCATED_LICENSE_AVAILABILITY has a field that keeps a running total of the number of licenses that are available for allocation.
I tried
Private Sub cboLicenseID_AfterUpdate()
If (qryALLOCATED_LICENSE_AVAILABILITY.Available <= 0) Then
MsgBox "You must purchase additional licences"
End Sub
I fully expected an error and was not dissapointed as my coding is terrible.
How can I complete the code: End IF...............Else.....
Thanks,
Phil.