Microsoft Access Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft Access Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old October 6th, 2009, 01:38 PM
kryles kryles is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2007
Posts: 180 kryles User rank is Lance Corporal (50 - 100 Reputation Level)kryles User rank is Lance Corporal (50 - 100 Reputation Level)kryles User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Day 19 h 24 m 11 sec
Reputation Power: 3
Queries - Access control in 2nd level subform using tab control

Hi all,

I tried a few google hits in regards to this but it doesn't seem to be working. I have 3 forms (frminstution -> invoice -> frminvoicelinedetail (this subform is on a tab control called pgShipping)).

I am trying to reference an object (called OrderLink) on the InvoiceLineDetail in a query.

These were attempts at trying to go about it. All I get is a parameter box, which there should be none (the forum is open so it isn't that)

Code:
[Forms]![frminstitution]![invoice].[Forms]![Orderlink]


Code:
[Forms]![frminstitution]![invoice].[Forms]![frminvoiceLinedetail].[Orderlink]


Code:
[Forms]![frminstitution]![invoice].[Form]![frminvoiceLineDetail].[Form]![Orderlink]


Am I setting it up wrong, or am I missing something to do with the Tab Control?

Btw this was mySource

Thanks,

Reply With Quote
  #2  
Old October 6th, 2009, 06:41 PM
June7 June7 is offline
Contributing User
Click here for more information.
 
Join Date: Apr 2009
Location: The Great Land
Posts: 547 June7 User rank is First Lieutenant (10000 - 20000 Reputation Level)June7 User rank is First Lieutenant (10000 - 20000 Reputation Level)June7 User rank is First Lieutenant (10000 - 20000 Reputation Level)June7 User rank is First Lieutenant (10000 - 20000 Reputation Level)June7 User rank is First Lieutenant (10000 - 20000 Reputation Level)June7 User rank is First Lieutenant (10000 - 20000 Reputation Level)June7 User rank is First Lieutenant (10000 - 20000 Reputation Level)June7 User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 16 h 26 m 49 sec
Reputation Power: 124
Depends on where you are referencing from.

In VBA code use (invoice is name of subform container control?):
[Forms_frminstitution].[invoice].[Forms]![Orderlink] or
[Forms_frminstitution].[invoice]![Orderlink] or
[Forms_frminstitution]![Orderlink]

In a textbox control:
From a subform referring to mainform control
[Forms]![mainformname]![tbxOrderlink]
From a mainform referring to subform control
[subformcontainername]![tbxOrderlink]

Reply With Quote
  #3  
Old October 6th, 2009, 08:07 PM
don94403's Avatar
don94403 don94403 is offline
Contributing User
Click here for more information.
 
Join Date: Jan 2007
Location: Northern California
Posts: 2,903 don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level)don94403 User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 3 Weeks 1 Day 4 h 19 m 54 sec
Reputation Power: 562
References to objects in subforms and/or tabs can be very difficult. This is where the Build wizard is really helpful. Instead of flailing around with the syntax, I strongly recommend just clicking on the Build icon (the one that looks like a magic wand with fairy dust sprinkles--or whatever that's supposed to be). You will save yourself a lot of time and trouble.
__________________
Experience is the thing you have left when everything else is gone.

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > Queries - Access control in 2nd level subform using tab control


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump





 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek