> Hi Simon
>
> Not really sure which code you are referring to and I can't find the
> original posts you have included.
>
> In reply to
>>>When I sell and Item I need this to be deducted from the total stock for
>>>the
>>>item which has been sold, what is the best way to do this?
> Not knowing the layout of your D Base it is quite hard to answer but you
> could look at including the equations in the query that the form is based
> on
> and then use the AfterUpdate event to requery the query/form to ensure
> your
> screen data is always up to date.
>
>
> --
> Wayne
> Manchester, England.
> Enjoy whatever it is you do
>
>
> "Simon Glencross" wrote:
>
>> Ok,
>>
>> I have looked at this and customised it I think correctly, do I put the
>> code
>> under the click event of a command button? Sorry new to this and getting
>> to
>> know the ins and outs.
>>
>> Thanks
>>
>>
>> "ruralguy via AccessMonster.com" <u12102[ at ]uwe> wrote in message
>> news:65cb79e35d4ab[ at ]uwe...
>> > MVP Allen Browne covers this pretty well.
>> >
http://allenbrowne.com/AppInventory.html>> >
>> > Simon Glencross wrote:
>> >>I have created a database which hold customer details, stock control
>> >>and
>> >>sales.
>> >>
>> >>I am having difficulty with the following.
>> >>
>> >>When I sell and Item I need this to be deducted from the total stock
>> >>for
>> >>the
>> >>item which has been sold, what is the best way to do this?
>> >>
>> >>I have the following tables.
>> >>
>> >>tblinvoice
>> >>Invoice ID(pk)
>> >>CustomerID(fk)
>> >>InvoiceDate
>> >>InvoiceNotes
>> >>
>> >>Tblinvoicedetails
>> >>InvoiceDetailID (pk)
>> >>InvoiceID(fk)
>> >>Quantity
>> >>PriceEach
>> >>ItemCode(fk)
>> >>
>> >>tblproducts
>> >>Itemcode (pk)
>> >>Description
>> >>productgroup
>> >>rrprice
>> >>salesprice
>> >>
>> >>tblcurrentstock
>> >>Itemcode (pk)
>> >>Quantity
>> >>
>> >>Any help would be much appreciated.
>> >
>> > --
>> > HTH - RuralGuy (RG for short) acXP WinXP Pro
>> > Please post back to this forum so all may benefit.
>> >
>> > Message posted via AccessMonster.com
>> >
http://www.accessmonster.com/Uwe/Forums.aspx/access-forms/200609/1>> >
>>
>>
>>
>>