473,387 Members | 3,820 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Access 2007: Split Forms with Subforms

Megalog
378 Expert 256MB
Hello all! This is my first posting here, although I've been lurking here for months and getting lots of help & tips from the past posts here.

I'm in the process of updating our company's Access 2003 database to 2007, and while we're finding some of the new perks to be neat, I'm having a problem getting some of them to behave as we've envisioned. For starters, we're using the new Split Form feature. When the split form datasheet shows up at the bottom of the form, it's enabled to expand linked data from another subform/subdatasheet that's on the main form (most of our forms have a tab control with multiple tabs, each usually containing list boxes or subforms).

My question is:
a) is it possible to enable/disable that expansion option alltogether, only showing the data relevant to the main form, and

b) in the case when we want to use it, and we have multiple subforms on a main form, how do we select -which- subform is shown on the split form datasheet? It appears to only show one linked datasheet, and it's rarely the one we would want.

Thanks for your time guys, hope this was stated as clearly as possible.

-Lee
Nov 12 '07 #1
10 25998
Megalog
378 Expert 256MB
I now also have a totally separate problem that I need someone to verify if it's a bug or not with Split Forms.

On our forms, we have a combo box at the top that is used for jumping to record numbers (This list is filtered by a variety of choices, and the filter is applied to the form filter). By navigating records this way, all the On Current events work properly, and all the form data displays correctly.

But, if I navigate to a different record using the datasheet shown with the Split Form view, the data remains visually accurate on the form fields, but any calculations being used with the On Current events are using old data from prior records. I've tried adding in extra object requeries, and it helps in some instances, but I dont want to have to do an extra requery on the whole form basically to get the events working properly. =/ It's very frustrating, considering the correct data is visually in all the fields. Anyone else had any problems with this? Is everyone avoiding 2007 like the plague? ;)

I've looked on bug lists (allen brownes, microsofts) and havent seen this listed anywhere.

Thanks for your time,

Lee
Nov 13 '07 #2
Megalog
378 Expert 256MB
Well it's been a few days since I've posted this, and nobody has replied, which I somewhat expected.

I've done some further testing with these problems, specifically the one in the 2nd part of my post, and thought I'd share my findings for anyone else who tries to use split forms in Access 2007. Hopefully you'll avoid the headaches I've had, or be able to identify the problem better than I have by seeing the issues presented here. I'd like for someone with Access 2007 to do some testing on their own to verify some of these bugs I'm finding. (Or even better, prove me wrong and guide me possibly to where I've gone astray)

First off, I believe the split form feature to be truly bugged. If your form is set to have a split, then the following bugs happen when you change records via clicking on the datasheet, OR when you use the form's Navigation Buttons.
Note: the record selector works normally if the Split Form feature is turned back off. If it's on, it inherits the problems that the split form datasheet has.

The following do NOT work during the Form-Current event, or events that have to do with a record # changing. (Form Load event seems to function, thankfully)

-Declared variables at the module level show up empty
-Combo Box data shows as null
-Toggle button on/off status needs an additional requery
-Toggle button captions need to be cleared first before applying a new value
-Label captions cannot be changed at all
-Unbound text fields need to be requeried, clicked on, or focus set, to display newly applied values

That's what I've found -so far-. All the issues are with unbound data or controls.
Now, I've managed a workaround for the variables and combo box data not working (which was my biggest issue). Luckily, in my case, these are all set on form load, and will not change while the same user is logged into the database. I had to make a label for each variable and set it's caption to whatever property I needed to preserve during the Load event, and then use those caption values in the Current events. It's a completely lame work-around, but so far the only way I've been able to get this database upgraded and working as it had before, using the new split form feature.

Also, another small bug of a different sort, is with Subform/Subreport controls. First off, if you have a subform control using a datasheet, your split form datasheet will be expandable to display this subdata beneath every row. It's a neat feature, allowing you to further filter on this subdata. But, if the subform control is using an actual form, the filtering is bugged and you'll get a sql error when trying to filter. My workaround for this, is to link a query to the subform control. By using a query only, the Split Form datasheet will expand, and easily allow you to filter without any problems.

My original problem that I posted about, however, still exists. If you have multiple subforms, there's no way that I've found to select WHICH of those expand in the split form datasheet.
Nov 16 '07 #3
I can confirm the issue with the labels not updating when changing records on the datasheet portion of the split view. This doesn't seem to be an issue when changing records using the navigation buttons. Have you found a solution to this? I am looking to visually alert my users of conditionally required data using the label. Turns out I can change the properties of the text boxes, but it's not as visually appealing. I'm going to try creating two labels and see if I can change visibility properties as forecolor doesn't work.
Jan 11 '08 #4
I have had similar problems with controls not updating when modified from a split form’s Current event. I have found that changing the reference from, for example, lblTest or Me.lblTest to Forms!MyForm.lblTest fixes the problem.
May 16 '08 #5
Megalog
378 Expert 256MB
I have had similar problems with controls not updating when modified from a split form’s Current event. I have found that changing the reference from, for example, lblTest or Me.lblTest to Forms!MyForm.lblTest fixes the problem.
Thanks for taking the time to report this. Hopefully they'll fix all the bugs with the split forms in the future.. and give us designers a bit more control over the options.
May 16 '08 #6
Glad to help. I have found that the Me object in the Current event seems to refer to the datasheet half of the split form when it fires as a result of action taken in the datasheet half. Thus, if you then change some object, it changes the object in the datasheet half. Sometimes this leads to an automatic, corresponding change to the object on the form half, but not always.
May 16 '08 #7
atof
1
Thank you orzeszek! That did the trick! Like Megalog, this was driving me nuts. I stepped through the code with the debugger and saw that the form object property changes I specified SHOULD have been firing -- but they didn't. Using the Forms!formname.object format fixed the problem. Clearly another Access 2007 bug, but the workaround did the job. Many thanks for the post.
Nov 4 '08 #8
Saved me a lot of time...
Sep 13 '09 #9
orzeszek,I only signed up to this forum to thank you for your tip. you are as star:-)
Sep 9 '10 #10
If you just put a me.refresh it will make the changes appear.
Oct 28 '10 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Ira Solomon | last post by:
Hi: Any quick opinions on Access 2007? Has anyone got this to coexist with Access 2003? Thanks Ira
1
by: Jasperuk | last post by:
Ok a real and i mean real complete novice to most things in access so please be patient i know very little about scripts and code. Trying to recreate a database at home based on practice during...
0
by: ARC | last post by:
Hello, I like the split forms in access 2007, because you can still do the header, and any tool buttons, yet have the datasheet look without the need for 2 forms (main form / subform). However,...
0
by: ARC | last post by:
I posted this before, but no response. Hopefully the MVP folks will know the answer. I'm not sure how other's are using the new split form, but what I like about it is I can design the header...
1
by: Shaun | last post by:
Hi all I have converted an accress XP data file to access 2007. The problem I now have is I cant add any data to the subforms. I have enabled all the allow options but still no go! Please help...
2
by: Wayne | last post by:
This is probably simple but: when using tabbed forms in A2007, is there a simple way to prevent the user from right-clicking on a form tab and choosing "Design View" other than disabling default...
0
by: avtuvy | last post by:
My Access 2007 access application includes a split form, The user updates or enters data to the top part of the form (text boxes) and than click a button to save the data. with thedefault settings of...
0
by: stevenblanc | last post by:
I've been hunting for a while. Since they've removed the show in taskbar option after 2003 I figure the quick way is out, but, surely there is still a VBA method of getting it done. I've done...
0
by: Nej Sanerkin | last post by:
In Access 2007 I have encountered instances where Me.Filter = "... " fails to operate for a split form. Using a reference set to the form object e.g. frmObj.Filter = "...." also fails to operate. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
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,...
0
jinu1996
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...

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.