S
Stockwell43
Hello,
I have an auction database that I built for the March of Dimes(with the help
of many people from this forum and thank you for that). It works fine except
for one thing, how can I set it up to except a minimum bid? In otherwords, If
the starting price is $5.00 a person HAS to bid in increments of say .50 or
$1.00. Is there a way to do this? I have it set up now where they have to put
in an amount and not "0" or blank. Here is the code I currently have in the
field.
Private Sub NewBid_AfterUpdate()
If Not IsNull(Me.NewBid) And Me.NewBid > 0 Then
Me.CurrentPrice = Me.CurrentPrice + Me.NewBid
End If
End Sub
Private Sub NewBid_Exit(Cancel As Integer)
If IsNull(Me.NewBid <= 0) Or Me.NewBid <= 0 Then
Cancel = True
MsgBox "Value is required!", vbOKOnly
Me.NewBid.SetFocus
If Me.NewBid <= 0 Then
Me.NewBid = Null
End If
If varCurrentPrice > 0 Then 'there was a value in this control
Me.NewBid = varCurrentPrice
End If
End If
End Sub
Any help would be greatly appreciated!!
Thanks!!!
I have an auction database that I built for the March of Dimes(with the help
of many people from this forum and thank you for that). It works fine except
for one thing, how can I set it up to except a minimum bid? In otherwords, If
the starting price is $5.00 a person HAS to bid in increments of say .50 or
$1.00. Is there a way to do this? I have it set up now where they have to put
in an amount and not "0" or blank. Here is the code I currently have in the
field.
Private Sub NewBid_AfterUpdate()
If Not IsNull(Me.NewBid) And Me.NewBid > 0 Then
Me.CurrentPrice = Me.CurrentPrice + Me.NewBid
End If
End Sub
Private Sub NewBid_Exit(Cancel As Integer)
If IsNull(Me.NewBid <= 0) Or Me.NewBid <= 0 Then
Cancel = True
MsgBox "Value is required!", vbOKOnly
Me.NewBid.SetFocus
If Me.NewBid <= 0 Then
Me.NewBid = Null
End If
If varCurrentPrice > 0 Then 'there was a value in this control
Me.NewBid = varCurrentPrice
End If
End If
End Sub
Any help would be greatly appreciated!!
Thanks!!!