PC Review


Reply
Thread Tools Rate Thread

code in access

 
 
=?Utf-8?B?bG9pem9z?=
Guest
Posts: n/a
 
      21st Jun 2005
Pls Help

I have 2 Tables : Header and Details

tblHeader
ProductId (PK)
Quantity

TblDetails
date
ProductId
Purchase Qunatity

I have a input form for Details and
I need to update the TblHeader[quantity]
using code
I now that the following is not correct

aa=tblHeader[quantity]+[Purchase Quantity]

What is the correct statement?
Thanks



 
Reply With Quote
 
 
 
 
=?Utf-8?B?S2xhdHV1?=
Guest
Posts: n/a
 
      21st Jun 2005
aa = tblHeader![quantity] + tblDetails![Purchase Quantity]

This assumes you have both recordsets open and the record set names are
tblHeader and tblDetails

"loizos" wrote:

> Pls Help
>
> I have 2 Tables : Header and Details
>
> tblHeader
> ProductId (PK)
> Quantity
>
> TblDetails
> date
> ProductId
> Purchase Qunatity
>
> I have a input form for Details and
> I need to update the TblHeader[quantity]
> using code
> I now that the following is not correct
>
> aa=tblHeader[quantity]+[Purchase Quantity]
>
> What is the correct statement?
> Thanks
>
>
>

 
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
Excel code convert to Access code - Concat & eliminate duplicates italia Microsoft Access Queries 1 12th Sep 2006 07:22 PM
Excel code convert to Access code - Concat & eliminate duplicates italia Microsoft Access 2 12th Sep 2006 06:13 PM
Excel code convert to Access code - Concat & eliminate duplicates italia Microsoft Access Macros 0 12th Sep 2006 05:04 PM
Excel code convert to Access code - Concat & eliminate duplicates italia Microsoft Excel Programming 1 12th Sep 2006 12:14 AM
VB6 - Access ADP Database Custom Property / Or Read Line of Code In ADP Code Module WhatTha Microsoft Access VBA Modules 0 24th Jan 2006 03:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:11 PM.