When the vehicle entry form (frmVehicleEntr yForm) first opens, the
additional owner SubForm control (frmAddnlOwnrLi stSubForm) is
enabled. You can click on it and it will accept the focus. But after
you enter data to the first field on the main form (a VIN#), that is
not the case. The SubForm control becomes disabled and will not
accept the focus. Dunno why. There's no child/master link fields.
They have no settings - at least not in design view. If I run this
?forms!frmVehic leEntryForm!frm AddnlOwnrListSu bForm.LinkChild Fields
in the immediate window when the form is open, I don't get any
output. Main form is bound to a table. Subform control is based on
a form that is bound to a query (qryAddnlOwnrLi st) which has only
a single table in it.
Any idea(s) why the SubForm may freeze up after commencing
entry of a new vehicle record in the main form? 6 3800
When you say "There's no child/master link fields.", do you mean the
LinkMasterField s and LinkChildFields are both Null, or that there is no data
in those fields? If the properties list a Field, and either of the Fields is
Null, then it makes perfect sense to me that the Subform would be
inaccesible.
I generally use Subforms in the way they were intended, to show values from
Tables related to the Table whose values are displayed in the main Form, and
don't have any difficulty. When I try to be clever and use them some other
way, to get around a stumbling block, I find they often do not work the way
I'd hoped and cause me more trouble than the problem I'd expected to solve
by using them.
Larry Linson
Microsoft Access MVP
"MLH" <CR**@NorthStat e.net> wrote in message
news:m9******** *************** *********@4ax.c om... When the vehicle entry form (frmVehicleEntr yForm) first opens, the additional owner SubForm control (frmAddnlOwnrLi stSubForm) is enabled. You can click on it and it will accept the focus. But after you enter data to the first field on the main form (a VIN#), that is not the case. The SubForm control becomes disabled and will not accept the focus. Dunno why. There's no child/master link fields. They have no settings - at least not in design view. If I run this
?forms!frmVehic leEntryForm!frm AddnlOwnrListSu bForm.LinkChild Fields
in the immediate window when the form is open, I don't get any output. Main form is bound to a table. Subform control is based on a form that is bound to a query (qryAddnlOwnrLi st) which has only a single table in it.
Any idea(s) why the SubForm may freeze up after commencing entry of a new vehicle record in the main form?
On Sat, 18 Mar 2006 19:31:23 GMT, "Larry Linson"
<bo*****@localh ost.not> wrote: When you say "There's no child/master link fields.", do you mean the LinkMasterFiel ds and LinkChildFields are both Null, or that there is no data in those fields? If the properties list a Field, and either of the Fields is Null, then it makes perfect sense to me that the Subform would be inaccesible.
Oops. That wasn't clear, was it? What I should have said was that both
the LinkMasterField s and LinkChildFields properties of the SubForm
control were Null. I'm using the control basically pretty much like a
list box.
<snip> If the properties list a Field, and either of the Fields is Null, then it makes perfect sense to me that the Subform would be inaccesible.
Hmmm. Am I completely stumped? I need access to the control.
That's for sure. Perhaps if I understood why it worked that way.
Oh well...
"MLH" <CR**@NorthStat e.net> wrote in message
news:t2******** *************** *********@4ax.c om... On Sat, 18 Mar 2006 19:31:23 GMT, "Larry Linson" <bo*****@localh ost.not> wrote:
When you say "There's no child/master link fields.", do you mean the LinkMasterFie lds and LinkChildFields are both Null, or that there is no data in those fields? If the properties list a Field, and either of the Fields is Null, then it makes perfect sense to me that the Subform would be inaccesible . Oops. That wasn't clear, was it? What I should have said was that both the LinkMasterField s and LinkChildFields properties of the SubForm control were Null. I'm using the control basically pretty much like a list box.
If both of those Properties are Null, e.g., neither of them specifies a
Field, then I don't know what is going on. I will see if I can re-create a
similar situation in Access 2002.
Is there any "linkage" between the Vehicle and the records from
AddlOwnrList? Do you recreate the qryAddnlOwnrLis t with some criteria? Does
it have some criteria, or are you just using it to pick a record?
What are you trying to accomplish with the Subform that you could not
accomplish with a Combo or List Box?
Larry Linson
Microsoft Access MVP
> If both of those Properties are Null, e.g., neither of them specifies a Field, then I don't know what is going on. I will see if I can re-create a similar situation in Access 2002.
Good, because if this will work, it will be act like a control I have
not yet seen in A97. Is there any "linkage" between the Vehicle and the records from AddlOwnrList ?
Yes there is. the vehicles table (tblVehicleJobs ) has a keyfield
[VehicleJobID] - autonumber type. The table on which qryAddnlOwnrLis t
is based (tblAddnlOwners ) has a long integer type field of the same
name and the two tables are linked in a one-to-many relationship.
So, the title for a given vehicle can have 1 primary owner (tblOwners)
and many additional owners.
Do you recreate the qryAddnlOwnrLis t with some criteria? Does it have some criteria, or are you just using it to pick a record?
qryAddnlOwnrLis t merely alphabetizes records in tblAddnlOwnrs.
All records in tblAddnlOwnrs are reflected in the dynaset. What are you trying to accomplish with the Subform that you could not accomplish with a Combo or List Box?
Now there's the question. And my final answer is...
The cool thing that I want to do here is for the subform to act like a
listbox that allows you to choose more than 1 record at once. The
mechanism for it is quite simple - a subform control listing a bunch
of additional owner names/addresses with a checkbox control at
the beginning of each row. The checkbox is simply a Yes/No field
in tblAddnlOwnrs. I wipe that field's data occasionally to make sure
its clean prior to each instance where I wish to give user the ability
to indicate and choose additional owners of a given vehicle. After
he has done so, I quickly scan tblAddnlOwnrs for records where
this Yes/No field is Yes and I set their [VehicleJobID] field values
to that of the current vehicle job ID. Of course, this is followed by
another quick wipe of the Yes/No values. Values in that field only
live for a very short time. It is my wish that each time the app is
launched - the Yes/No field be clear of data.
The objective in a nutshell is to have something that, although
it may have the appearance of a list box, is not a listbox at all.
Instead of allowing you to scroll through and select a single record
(a listbox allows selection of only one record-at-a-time) - it allows
you to 'select' multiple records at a time. Of course, you are not
'selecting' records at all. You are merely setting a field value in
each record as you go. But it gives one the appearance of being
able to select multiple records in a listbox and that's what I was
trying to do. Larry Linson Microsoft Access MVP
<snip> Is there any "linkage" between the Vehicle and the records from AddlOwnrList ? Do you recreate the qryAddnlOwnrLis t with some criteria? Does it have some criteria, or are you just using it to pick a record?
I also wanted to mention that I tried deleting the defined relationshp
and it had no effect. Still, when I type the very first keystroke into
the vehicle entry form (commencing the entry of a new record into
tblVehicleJobs) the subform control becomes unselectable at that
instant. If the user makes his/her 'selections' in the subform control
FIRST - all is well. Mission accomplished. But the natural tendency
is to enter the VIN first and then rock on. Of course, the user is
disappointed (after having completed a dozen fields) when he realizes
he must press the ESC key and lose everything entered into the record
at that point, just so he can choose the additional owners in the sub-
form control.
<snip> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Rey |
last post by:
Howdy all.
Appreciate your help with several problems I'm having:
I'm trying to determine if the Visit subform (subformVisits) has a new
record or been changed, i.e. dirty. The form that contains the subform is
named Clients.
I have this code in the Add Client btn:
If Forms!Clients.subformVisits!VisitDirty = True Then
MsgBox "Visit subform is dirty!"
|
by: ChrisR |
last post by:
Hi guys
My app is a simple Main form with a few Subforms that are not linked,
and a few pop forms.
Problem is:
I have a pop form with a Listbox with a list of records related to the
subform in the Main form. I'd like to double click on the selected
file in the listbox and load that record into the the Subform, easy
|
by: Lyn |
last post by:
Hi,
I am working on a genealogy form. The only table (so far) lists everybody
in the family, one record per person. Each record has an autonum ID.
The parent form (frmMainForm) displays the data in each record, which
includes the ID of the father and the mother (who also have records in the
table). One record per form.
I have a Tab Control in the form, and in one of the tabs I have a subform
(sfmSiblings) in which I wish to list...
|
by: Bob |
last post by:
Hi Everybody
I have a form called frmListBox that is connected to a table tblListBox.
This is opened from a form called "frmInvoiceOrder" which has a subform called "zfrmInvoiceOrder"
and floats above (ie is pop-up) !
Private Sub ListBox_DblClick(Cancel As Integer)
DoCmd.OpenForm "Forms!!!.Form! = Me!ListBox.Column(1)
Forms!!.Form! = Me!ListBox.Column(2)
|
by: Darryl Kerkeslager |
last post by:
I don't do much with subforms - in fact I've deliberately avoided them - but
....
I have a tab control that will contain several subforms, each bound to a
separate table, and each table/subform will relate to the same person - but
the subform data will not be 'linked' to the main form.
I want to have one Cancel button for all the undo operations on all the
subforms, so the individul subform's Public Sub, Form_Cancel will be called...
| |
by: tdmailbox |
last post by:
I have a form with a child form. In the child form there is a list of
names that can grow quite large. On the parent form I want to display
the first name from the child form. I set up a test box that is
populated with the code
=subfrm_media_review_sec_party.Form!first_name & " " &
subfrm_media_review_sec_party.Form!last_name
It works except that when I flip through the names it populates the
parent form with the name of what ever...
|
by: Susan Bricker |
last post by:
Hi. I have a Main form with a subform that has a subform. I have an
'Add Event' button on the Main Form that issues the following
instruction:
DoCmd.GoToRecord , , acNewRec
If the record being displayed BEFORE the 'Add Event' button is clicked
does not have data to be displayed (no associated linked records) then
when the 'new record' is displayed, the innermost subform looks just
fine (all the controls are there and they are empty).
|
by: Ecohouse |
last post by:
I have a main form with two subforms. The first subform has the child
link to the main form identity key.
subform1 - Master Field: SK
Child Field: TrainingMasterSK
The second subform has a master-child link to the first subform.
subform2 - Master Field: subTrainingModule.Form!TrainingModuleTopicSK
Child Field: TrainingModuleTopicSK
|
by: Macbane |
last post by:
Hi,
I have a 'main' form called frmIssues which has a subform control
(named linkIssuesDrug) containing the subform sfrmLink_Issues_Drugs.
A control button on the main form opens a pop-up form which allows me
to edit the record in the subform. What I want to happen is for
subform with the new edits to be updated on the main form when I close
the popup. I'm sure this is a very small bit of code in the the 'On
close' event for the popup...
|
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: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |