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 » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Quickie / Form Subform



 
 
Thread Tools Display Modes
  #1  
Old May 26th, 2004, 08:28 PM
Kevin Sullivan
external usenet poster
 
Posts: n/a
Default Quickie / Form Subform

I have a form, f1.
I have a subform, s1.
There is a field on s1 titled [ID].

I want to use that [ID] field as criteria in a query.

Microsoft shows:

Forms![main form name]![subform control name].Form![control name]

I can't seem to get anything like this to work. What am I doing wrong? TIA!

ks
  #2  
Old May 26th, 2004, 09:37 PM
Jim/Chris
external usenet poster
 
Posts: n/a
Default Quickie / Form Subform

Try
Forms![f1]![s1].Form![ID]

Jim

-----Original Message-----
I have a form, f1.
I have a subform, s1.
There is a field on s1 titled [ID].

I want to use that [ID] field as criteria in a query.

Microsoft shows:

Forms![main form name]![subform control

name].Form![control name]

I can't seem to get anything like this to work. What am I

doing wrong? TIA!

ks
.

  #3  
Old May 27th, 2004, 01:46 PM
Kevin Sullivan
external usenet poster
 
Posts: n/a
Default Quickie / Form Subform

Thank you for the reply!

It ended up that Access named my subform (q1) after the query when I
dragged the subform onto the mainform.

Consequently, when I created my reference, my subform name (s1) and
what access named my subform (q1) on the main form did not match.
Refering to s1 kept erroring out. I simply opened the main form,
renamed the embedded subform (q1) to s1 and it works. :^)

"Jim/Chris" wrote in message ...
Try
Forms![f1]![s1].Form![ID]

Jim

-----Original Message-----
I have a form, f1.
I have a subform, s1.
There is a field on s1 titled [ID].

I want to use that [ID] field as criteria in a query.

Microsoft shows:

Forms![main form name]![subform control

name].Form![control name]

I can't seem to get anything like this to work. What am I

doing wrong? TIA!

ks
.

 




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


All times are GMT +1. The time now is 10:30 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.