Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

subform macro won't fire 1

Status
Not open for further replies.

ThunderGeek

Technical User
Nov 29, 2004
38
US
I have a subform (access 2000), XP SP2 computer with two fields one named [Qty] and another named [Onhand]. A macro runs to prevent a uses from entering a quantity [qty] larger than the [Onhand] value. The macro is fired on the beforeupdate event, the conditions column is [QTY]>[ONHAND] and if this is true then a sendkey of {ESC 3} is sent. My problem is that this macro works well on all of my other computers but fails to work on my new Dell computer 1 meg ram 3 Gig Pentium. I have even tried converting the macro to code and that doesn't work either. Any thoughts would be welcome.
 
How are ya ThunderGeek . . .

and this in the [blue]BeforeUpdate[/blue] event of [purple]qty[/purple]:
Code:
[blue]   If Me!Qty > Me!OnHand Then
      MsgBox "Can't have Quantity greater than OnHand!"
      Cancel = True
      Me.Undo
   End If[/blue]

Calvin.gif
See Ya! . . . . . .
 
TheAceMan1
That fixed the problem
Thank You Very Much!
ThunderG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top