A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

RE-POST...need HELP PLEASE



 
 
Thread Tools Display Modes
  #1  
Old August 10th, 2004, 05:12 PM
Kasey
external usenet poster
 
Posts: n/a
Default 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  
Old August 10th, 2004, 05:47 PM
StCyrM
external usenet poster
 
Posts: n/a
Default 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  
Old August 10th, 2004, 05:55 PM
Kasey
external usenet poster
 
Posts: n/a
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 08:01 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.