Hello,
I have an Access 2000 ADP main form called frmAD_OpeningFo rm that
needs to support several possible sub forms.
The subform that should appear would be based on the combined bound
values of two combo boxes that are located in the form header of the
main form. The way I have the combo boxes set up in the main form is
to have the user make a selection in each combo box, then click a
button named ‘Set' (and labeled ‘Set') to make the correct subform
appear. These subforms would appear in the Detail section of the main
form.
When the form initially opens, there is a label in the detail section
(Label15) where the subform would go. This label text basically tells
the user to make a selection from both combo boxes, then click ‘Set'
to see a test. This label should not be visible when there is a
subform in the detail section.
I imagine the logic for what I am trying to do would go something like
this:
On Set_Click
Set frmAD_OpeningFo rm!Label15.Visi ble = No
IF (When)
[Forms]![frmAD_OpeningFo rm]![Combo2]='HMKRL6' And
[Forms]![frmAD_OpeningFo rm]![Combo4]='00'
THEN
SETVALUE: ITEM: [Forms]![frmAD_OpeningFo rm]![frmBogusSubForm].[SourceObject]
EXPRESSION: [frm0HMKRL6sub2]
ELSE
IF (Other Combo2 Combo4 Combination)
THEN
SETVALUE : ITEM: (Same subform Source Object (???))
EXREPSSSION: (the subform per the Combo2 and Combo4 combination)
ELSE (evaluate 100+ possible combinations of Combo2 and Combo4 and
show the appropriate subforms)
While the user is in the main form, if changes are made to either
combo2 or combo4, and the user clicks the ‘Set' button, the current
subform would need to be ‘removed' and the new one ‘loaded' if the
combination of the combo boxes would represent a different subform.
When the main form is closed, all subforms would need to be ‘unloaded'
and frmAD_OpeningFo rm!Label15.Visi ble = Yes.
I have tried similar logic in a macro to evaluate one possible
combination of Combo2 and Combo4 and assigned it to the On Click event
of the ‘Set' button, but when I tried it, I got the following
message:
The object doesn't contain the Automation object "frmOHMKRL6sub2 ".
You tired to run a Visual Basic procedure to set a property or method
for an object. However, the component doesn't make the property or
method available for Automation operations.
Check the component's documentation for information on the properties
and methods it makes available for Automation operations.
I think that this means that I can't perform a SET VALUE action on the
Source Object property of a subform. After I click okay on this
message, an ‘Action Failed' dialog box for the macro appears. The
macro does not run, and the frm0HMKRL6sub2 subform does not ‘load'
into the detail section of the main form.
What could I set up to make this work?
Thank you for your help!
CSDunn 0 2196 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: CSDunn |
last post by:
Hello,
I have an Access 2000 ADP main form called frmAD_OpeningForm that
needs to support several possible sub forms.
The subform that should appear would be based on the combined bound
values of two combo boxes that are located in the form header of the
main form. The way I have the combo boxes set up in the main form is
to have the user make a selection in each combo box, then click a
button named ‘Set' (and labeled ‘Set') to make the...
|
by: M Wells |
last post by:
Hi All,
I am developing an Access 2003 project application with the back end
in SQL Server 2003.
I have a master form that tracks projects, and several subforms on it
that track various aspects of the project. On the masterform I have
two unbound listboxes that I populate with information regarding the
current record in one of the subforms.
|
by: Jack |
last post by:
Gday everyone,
I'm dearly hoping Stephen Lebans is going to update his masterpeice to
stop the mouse wheel scrolling to work on subforms *he has indicated
this to me but of course beggers can't be choosers here so I have no
idea when this would be done*. I'm just wondering if anyone has gotten
around the problem some other way?
--Original Thread---
|
by: John Hunter |
last post by:
I've recently had a nasty problem with the "Invalid reference to the
property Form" error in subforms - nasty because it doesn't seem to
consistently happen to all forms which contain the same structure and
code. Judging by the forums I've researched, it's not an uncommon
error. I'm happy to say I've found a simple solution.
OVERVIEW: I have a main form (no record source) which contains two
subforms. The subforms are not linked, but...
|
by: Paul T. RONG |
last post by:
Is it possible to divide a tall subform with 80 records to two subforms each
with 40 records?
Dear All,
What I have: Tables: tblProduct, tblOrder, tblOrderDetail
| |
by: Reza Nabi |
last post by:
Bakground: I have a webform (LoadCtl.aspx) which loads the user control to a
placeholder dynamically based on the ctlName querystring passed in the URL.
Webform (LoadCtl.aspx) also passes a variable (targetId) in to the
usercontrol (IntergySite.aspx) by calling its setter method.
Currently, I am using if-then-else and hardcoded the User Control Object to
do casting and call the setter method.
Question: Is there any way I could load,...
|
by: Magenta |
last post by:
What I'd like to do display a form that consists of subforms, and
allow a user to resize the sections of a form at will.
For example, if a form has three subforms, each placed vertically and
using a 1/3 of the width, I'd like the user to be able to grab and
drag the edge of one subform to increase/decrease the width of that
subform and decrease/increase the width of the adjacent subform.
Is this doable in Access? Does anyone know of...
|
by: ApexData |
last post by:
I'm starting a new project. A Personnel System. I have considered
opening a single bound form to the main employee table. The user can
scroll the records to any individual. I would like to have a tab
control at the top of the form which would allow the user to select
(PERSONAL), (TRAINING),(DISIPLINARY),and (SICKLEAVE) Tabs. Each Tab
should open a FORM and display the relavant TABLE of records tied to
the Employee being viewed in the...
|
by: Rob |
last post by:
I am putting together a small Access 2003 DB to record details of our
motorvehicles. (this is more to teach myself some basics with Access)
The main form is holding data that is common to most vehicles. Eg.
Registration date, expiry, VIN/Chassis, Make, Model, Year.
Additional things that I will record is maintenance/servicing, insurance
etc etc.
The vehicles are a bit varied,: Cars, truck, trailer, motorbikes, caravan.
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |