Advertisement

05.14.2008 at 04:47PM PDT, ID: 23403568
[x]
Attachment Details

VBA - OnClick on form

Asked by DeanMarteen in Access Forms, Access Coding/Macros

Tags: Microsoft, Access, 2003

I'm trying to get a msgbox to inform user that, if there is no Serial (Item selected) for the specific Sale, there needs to be a Item selected before you can indicate "OK to Pay."
 
The checkbox already has some enable/disable items; I've inserted new instructions, but it's not working. The Serial field doesn't have a default of "0", it would be blank if there's no Serial selected. I tried Null, >0 with no success.
 
Private Sub OKtoPay_Click()
If OKtoPay.Value = vbChecked Then
    Combo218.Enabled = False
Else
    Combo218.Enabled = True
End If
If (Forms!frmSales!Serial >= 0) Then
    MsgBox "A Kirby is not assigned to Sale.", vbExclamation, "BizTrack"
    Combo218.Enabled = False
    OKtoPay.Value = 0
End If
End Sub
 
Any help would be appreciated.
Start Free Trial
[+][-]05.14.2008 at 04:54PM PDT, ID: 21569644

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Access Forms, Access Coding/Macros
Tags: Microsoft, Access, 2003
Sign Up Now!
Solution Provided By: eghtebas
Participating Experts: 1
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628