hi
I want to know how to Disable a button and after i go to the next record , then make it enable? (For information
i am making a Stock Control Database )
How can i achieve this?
here is my code but it only disables the command button but doesn't enable it when i go to next record.. :s
Private Sub Command61_Click()
Me!Command61.Enabled = False
'Check to see if there is any amount or is less than Total
If IsNull(Me.Paid) Or Me.Paid = "" Or Paid < Total Then
msgBox " The AmountPaid is Less than the Total Amount(Rf) ", vbCritical, " Error"
Exit Sub
End If
'Update the Stock
If Quantity_in_Stock < Quantit Then
msgBox " There is Not enough stock ", vbCritical, " error "
Else
Balance = Paid - Total
Quantity_in_Stock = Quantity_in_Stock - Quantit
End If
End Sub
Thanks in Advance
I want to know how to Disable a button and after i go to the next record , then make it enable? (For information
i am making a Stock Control Database )
How can i achieve this?
here is my code but it only disables the command button but doesn't enable it when i go to next record.. :s
Private Sub Command61_Click()
Me!Command61.Enabled = False
'Check to see if there is any amount or is less than Total
If IsNull(Me.Paid) Or Me.Paid = "" Or Paid < Total Then
msgBox " The AmountPaid is Less than the Total Amount(Rf) ", vbCritical, " Error"
Exit Sub
End If
'Update the Stock
If Quantity_in_Stock < Quantit Then
msgBox " There is Not enough stock ", vbCritical, " error "
Else
Balance = Paid - Total
Quantity_in_Stock = Quantity_in_Stock - Quantit
End If
End Sub
Thanks in Advance