If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
RE-POST...need HELP PLEASE
I followed this exactly and it works but.. the math
is not done as soon as I leave the QtyUsed field. It updates when i go to the next record...how do I get it to update when I leave the field? Thanks again. Kasey Well, I would not put "qty used" in my table. That is a temporary field. It should be an unbound field on the form your users will use for making entries. You will need to put code on your form in the 'after update' event of the 'QTY USED' unbound field. This will cause the math to happen as soon as your cursor leaves the 'QtyUsed' field. You may decide it would be better to do this as you move to the next recor. In either case, the code should do the math, then clear the field. The code should say... Private Sub QtyUsed_AfterUpdate() QtyOnHand = QtyOnHand - QtyUsed ' Clear FIND Qty Used box Me!QtyUsed.Value = "" End Sub |
#2
|
|||
|
|||
RE-POST...need HELP PLEASE
Hi Kasey
Try adding the Me.Refresh as shown below. Best regards Maurice St-Cyr QtyUsed_AfterUpdate() QtyOnHand = QtyOnHand - QtyUsed ' Clear FIND Qty Used box Me!QtyUsed.Value = "" Me.Refresh ----- Added End Sub |
#3
|
|||
|
|||
RE-POST...need HELP PLEASE
Thank You so very much Maurice...I couldn't get anyone to
respond--so glad you did. Regards, Kasey -----Original Message----- Hi Kasey Try adding the Me.Refresh as shown below. Best regards Maurice St-Cyr QtyUsed_AfterUpdate() QtyOnHand = QtyOnHand - QtyUsed ' Clear FIND Qty Used box Me!QtyUsed.Value = "" Me.Refresh ----- Added End Sub . |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OE6 Hangs In Middle of Receive - Updated Post | KIR | Outlook Express | 7 | August 10th, 2004 02:16 AM |
Vlookup post codes/zipcodes query | pgiblin | Worksheet Functions | 10 | July 30th, 2004 03:56 PM |
Public Contact birthday and anniversary post to Public Calendar | MB | Contacts | 0 | June 10th, 2004 09:05 PM |
MAKE QUICK CASH RIGHT NOW!!! 100% LEGAL, INSTRUCTIONS IN THIS POST!! | MAKE CASH NOW!!! | Setting up and Configuration | 0 | December 12th, 2003 06:36 PM |