PC Review


Reply
Thread Tools Rate Thread

Copy latest price to form and update price history

 
 
=?Utf-8?B?c3BhY2Vyb2NrZXQ=?=
Guest
Posts: n/a
 
      4th Apr 2006
Hi,

I am doing a Purchase Order database where I have a PO form (F_PO) and a
Price History form (F_PH). The PH will record the price of the item each time
a PO is created (ie. Order Date, Item Name and Unit Price). The underlying
table for PO is T_PO and for PH is T_PH.

When the item is selected in the PO form, I need the Unit Price to appear
(where T_PH.ItemID=F_PO.ItemID). The Unit Price must be the latest Unit Price
for the Item in the PH. If there is no order history for the Item, then the
PH will not have data. If that is the case, the user can enter the Unit Price
in the PO form.

Once the PO form is saved, the Unit Price for all the items will be updated
to T_PH, (Order Date and Unit Price will be copied) where
T_PH.ItemID=F_PO.ItemID.

How do I do this?

FYI, I am using a subform in the PO for the ItemID, Quantity, UnitPrice and
TotalPrice. As such, do I need to put a 'Requery' for each ItemID after
update?

Please help.. I've been looking at all the records in this newsgroup and
tutorials but am still cracking my head. Thanks a lot.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
copy latest price from sheet1 to sheet2 using VBA wangww Microsoft Excel Programming 4 25th Mar 2008 04:28 AM
Help: Need Excel formula to return correct price from price history table Ian_W-at-GMail Microsoft Excel Misc 6 21st Mar 2007 06:45 PM
Get price from history & Update price in history =?Utf-8?B?c3BhY2Vyb2NrZXQ=?= Microsoft Access Forms 2 21st Apr 2006 02:08 PM
calculate/convert volume price to monthly average price =?Utf-8?B?QnVsdGdyZW4=?= Microsoft Excel Worksheet Functions 2 14th Feb 2006 09:36 AM
change price in table w/out changing price in past records =?Utf-8?B?a2luYmVybHk=?= Microsoft Access 2 8th Nov 2003 01:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:24 AM.