PC Review


Reply
Thread Tools Rate Thread

append queries from subform criteria

 
 
Simon
Guest
Posts: n/a
 
      1st Dec 2006
i have a Append query that works fine, within the criteria of the query
depends on a number that is on the open form.

This critiea workd fine [Forms]![frmManufactureTub]![HotTubCode]

Now instead of the looking for the number on the form i would like it
to look for the number within the subform within the form

I tried [Forms]![frmManufactureTub]![HotTubCode] but this does not work

do i have to change the criteriafor when i want ti to take a value from
a subform


Thanks

 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      1st Dec 2006
First, determine the name of the control on the main form that contains your
subform. (Depending on how you added the subform, it may be different than
the name of the form being used as a subform)

To refer to a control on the subform, you use:

[Forms]![NameOfParentForm]![NameOfSubformControl].Form![NameOfControlOnSubform]

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"Simon" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>i have a Append query that works fine, within the criteria of the query
> depends on a number that is on the open form.
>
> This critiea workd fine [Forms]![frmManufactureTub]![HotTubCode]
>
> Now instead of the looking for the number on the form i would like it
> to look for the number within the subform within the form
>
> I tried [Forms]![frmManufactureTub]![HotTubCode] but this does not work
>
> do i have to change the criteriafor when i want ti to take a value from
> a subform
>
>
> 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
Append queries... h3llz Microsoft Access Form Coding 1 4th Dec 2008 01:29 PM
Open PopUp form with criteria from Subform and criteria in Main fo Emma Aumack Microsoft Access Form Coding 1 15th Dec 2007 05:59 AM
Append queries =?Utf-8?B?QW1hdGV1cg==?= Microsoft Access 11 17th May 2007 06:45 AM
Refreshing Make Table Queries and Append Queries =?Utf-8?B?SmltbXkgRw==?= Microsoft Access 3 4th Feb 2005 04:25 PM
Append Queries S Jackson Microsoft Access Getting Started 3 4th Aug 2004 01:37 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:55 PM.