473,770 Members | 6,713 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Subform errors - can you check this...

I wonder if anyone would have 5 minutes to check this for me. Access XP
with new database created:

Simple table tblTest: ID=autonumber, F1=Text with a few sample records
frmSub has this as its recordsource and is set to datasheet view
frmMain is unbound and has a subform control named 'sbfSub1' with 'frmSub'
as the source object which is placed in the form footer. It has a button on
the detail section with the following code:
MsgBox Me.sbfSub1.Form .RecordSource

This works fine if the form footer section is visible, but if not I get
error 2455: Invalid reference to property. I can make the subform control
invisible and the error does not occur, but I thought I would be able to
make the footer invisible. Is this a known thing, or am I doing something
silly?
Feb 16 '06 #1
2 1937
Just checked, same with Access 2003 here.

Possible workaround:
Make the footer.height *very small*, make the sub.height even smaller...
0,011 cm for the sub and 0,019 cm for the footer works here, which is in fact invisible (to me ...)
But I have NO Clue whatever about what you are trying to accomplish here...

Arno R

"Anthony England" <ae******@oops. co.uk> schreef in bericht news:dt******** **@nwrdmz02.dmz .ncs.ea.ibs-infra.bt.com...
I wonder if anyone would have 5 minutes to check this for me. Access XP
with new database created:

Simple table tblTest: ID=autonumber, F1=Text with a few sample records
frmSub has this as its recordsource and is set to datasheet view
frmMain is unbound and has a subform control named 'sbfSub1' with 'frmSub'
as the source object which is placed in the form footer. It has a button on
the detail section with the following code:
MsgBox Me.sbfSub1.Form .RecordSource

This works fine if the form footer section is visible, but if not I get
error 2455: Invalid reference to property. I can make the subform control
invisible and the error does not occur, but I thought I would be able to
make the footer invisible. Is this a known thing, or am I doing something
silly?

Feb 16 '06 #2
"Arno R" <ar***********@ tiscali.nl> wrote in message
news:43******** **************@ text.nova.plane t.nl...
Just checked, same with Access 2003 here.

Possible workaround:
Make the footer.height *very small*, make the sub.height even smaller...
0,011 cm for the sub and 0,019 cm for the footer works here, which is in
fact invisible (to me ...)
But I have NO Clue whatever about what you are trying to accomplish here...

Arno R

"Anthony England" <ae******@oops. co.uk> schreef in bericht
news:dt******** **@nwrdmz02.dmz .ncs.ea.ibs-infra.bt.com...
I wonder if anyone would have 5 minutes to check this for me. Access XP
with new database created:

Simple table tblTest: ID=autonumber, F1=Text with a few sample records
frmSub has this as its recordsource and is set to datasheet view
frmMain is unbound and has a subform control named 'sbfSub1' with 'frmSub'
as the source object which is placed in the form footer. It has a button
on
the detail section with the following code:
MsgBox Me.sbfSub1.Form .RecordSource

This works fine if the form footer section is visible, but if not I get
error 2455: Invalid reference to property. I can make the subform control
invisible and the error does not occur, but I thought I would be able to
make the footer invisible. Is this a known thing, or am I doing something
silly?



Thank you for checking. I wonder if this is a bug or whether it is supposed
to be like this. It seems strange that you can have the subform control set
to a tiny size and make it invisible, but if you set the footer to
invisible, you get this error.

By the way, I am not doing anything too strange. I am doing some stuff
which needs a number of user settings to be available for read/write access
and I use the subform's recordsource to do this. Normally, there is no need
to see the value of the settings so the idea was to place the subform on an
invisible footer. If I can't do it like this, then I will simply alter the
size of the form and, as it cannot be re-sized by the user anyway, they will
never see the bit at the bottom of the form.

If anyone has an explanation for this behaviour, please feel free...
Feb 16 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
24874
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!"
2
8313
by: chris vettese | last post by:
I've been having trouble with this for a long time. I have a form that has many subforms. In the subforms I have unbound text boxes in the footer that sum a field. I want to Display this sum on the main form for each subform and then add them all together. In a book I have it gives the following example: =(Object type!!.Form!) I created an unbound text box on my main form and filled in the information in the example above and get a...
5
3373
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)
6
3167
by: ryan | last post by:
I created in design view a subform within a subform. However the subform within the subform in only visible in design view. In form view the subform within the subform is not visible. I have only nested from the mainform to a subform into another subform. Any clues why my subform within my subform is not visible in form view?
3
3260
by: dataeagle | last post by:
In the 'On open' event of a main form, I need to check the values of a nested subform (i.e. subform of a subform). I am able to pass the first value, and even though it goes through each time, it is not passing the new value to the code..so if the first value is what I want, great, but if it is in record 2 thru x, it acts as if it is not there. BTW, I am just having the code bring up a message box to test. Once this works, I will be...
14
11471
by: Kurt | last post by:
I have an unbound main form with an unbound subform. frmProjects fsubProjectList Using combo boxes, the user can select several search criteria on frmProjects and then click a command button. The command button passes the criteria as a string to a query. A subform, which is based on this query, shows the results of the search.
9
9700
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
6
2161
by: ccookson | last post by:
The following code is part of a button (on click) that places a check (true) in a filtered subform. The subform is a set of continuous forms. The checks are placed but it gives an error message that it can’t go to the next record. When I try to step through it, a check is placed in the first record but errors out before it starts to loop? x = Me.Text6 Screen.PreviousControl.SetFocus DoCmd.GoToRecord , , acFirst Do While x > 1 ...
3
2230
by: Kelii | last post by:
I've been beating my head against this problem for the last several days, and I haven't found a decent solution yet. So I'm turning to the group for some moral support or better yet some answers. Background: I want the user to be able to close the form by using the "x" button in the window title bar, I do not want to disable this. I have found a nice solution in the Access Developer's Handbook that disables the "x", however I am hoping...
0
9591
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9867
tracyyun
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...
0
8880
agi2029
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...
1
7415
isladogs
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...
0
6676
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();...
0
5312
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...
0
5449
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3969
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
2
3573
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.