473,406 Members | 2,369 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,406 software developers and data experts.

Subform Acting Weird (again...)

Tabbed control with four subforms - one each tab.

When I have everything set to "Browse" mode (i.e. all controls in all subforms
locked), two of the subforms do not show on the screen.

As soon as I make all of the controls unlocked and set the subforms to be able
to add records, the forms appear in the two offending tabs - but they act like
there is nothing in their .RecordSource (i.e. they are positioned at the "New"
record). There is something in the .RecordSource and each form's .RecordSource
is pointing there.

One diff between these two tabs and the ones that seem to work is that each
subform is "Single" and not "Continuous".

I played around with "LinkChild"... but to no avail.

I've rebuilt this form from scratch twice because of other weirdnesses that I
suspect were introduced by a TreeView control on the same form - the weirdness
seems to start immediately after MS Access abends for some unknown reason.

Has anybody seen anything like this?

I *could* rebuild the form again - but I don't want to put something like this
into production until I have a handle on what's happening.

--
PeteCresswell
Jul 17 '06 #1
5 1393
With all due respect to Access, what I have notice from people who have
been coding in Access for a long time (5 or more years) the coding
becomes more sophisticated and it becomes harder to manage this code in
Access because Access is a fairly high level programming environment -
high level as in you can only tweak Access so much (as opposed to OOP
where you can tweak base procedures to your hearts content). It is kind
of like you can only manipulate a wizard so far. When it starts to act
in ways that you can't control - it is because you can't get down low
enough under the hood to do so. I guess for those people who must be
able to change the base behaviors of Access there is probably API code
(or for those people who are gurus of low level programming - can write
their own API code - but then you get into the Re-Inventing the wheel
syndrom - if a person is that good, they probably won't waste their
time).

I have been coding in Access for over 10 years now, and I have been
migrating more and more projects to the .Net environment because even
though the OOP learning curve is a little steeper than VBA, once you get
the hang of it, it is much easier to control stuff because you are at a
much lower level coding. Kind of like if you build a house with
pre-fabricated parts, you can only tweak those pre-fabricated parts so
much. If you can build the parts yourself, they are much easier to
customize.

So, on the subject of subforms, for the level of sophistication you are
describing, I would consider migrating to VB2005 and use a datagridview.
For example, to change datasources in a subform you must have
pre-existing fields for each datasource. In a datagridview (VB2005)
whatever you set the datasource to is how many columns/fields you are
going to get. In recent times I have had serious heartaches with
subform (against sql server tables).

So my suggestion is to look at the operation you are working on and
evaluate the tools you are using. For more sophisticated operations you
need more sophisticated tools.

Rich

*** Sent via Developersdex http://www.developersdex.com ***
Jul 17 '06 #2
Per Rich P:
>I have been coding in Access for over 10 years now, and I have been
migrating more and more projects to the .Net environment because even
though the OOP learning curve is a little steeper than VBA, once you get
the hang of it
I've been flirting with the idea of going into .Net with the notion of creating
a template app that I can clone - but never seem to have found the time. However
it seems to me like I ought to get off my butt pretty soon and start working at
it.

What's your take on how many man hours it takes you do the same app in .Net vs
MS Access?
--
PeteCresswell
Jul 17 '06 #3
Per (PeteCresswell):
>I played around with "LinkChild"... but to no avail.
Now it seems tb something with LinkChild/Master.

In VBA, I set both to "", and one of the forms started working.

Poking and prodding, it looks like they weren't seeing any records in the
..RecordSource - even though there were.

The other form still wouldn't work. Then I just imported the work table it was
pointed to, and set it's .RecordSource to that table within the app... then it
worked. Then I changed it back to pointing to the work table, kept clearing
..LinkChild/MasterFields, and the Fushlurggener thing started working again.

I'm *really* running scared on this one.... maybe it'll be the one that pushes
me over to .NET... -)
--
PeteCresswell
Jul 18 '06 #4
On Mon, 17 Jul 2006 16:32:11 -0400, "(PeteCresswell)" <x@y.Invalid>
wrote:

In my mind it's difficult to compare. Depends on the complexity of the
app. The complexer the app, the less obvious Access' benefits are. If
you have to write 50 kloc to get things done, the benefit may be
minimal or negative. But if you can slap-slap an application together
using wizards, parent-child forms with all bound controls, using a lot
of Access' built-in strengths, then no .Net developer will be able to
beat you.

-Tom.
>Per Rich P:
>>I have been coding in Access for over 10 years now, and I have been
migrating more and more projects to the .Net environment because even
though the OOP learning curve is a little steeper than VBA, once you get
the hang of it

I've been flirting with the idea of going into .Net with the notion of creating
a template app that I can clone - but never seem to have found the time. However
it seems to me like I ought to get off my butt pretty soon and start working at
it.

What's your take on how many man hours it takes you do the same app in .Net vs
MS Access?
Jul 18 '06 #5
"(PeteCresswell)" <x@y.Invalidwrote in
news:2r********************************@4ax.com:
The other form still wouldn't work. Then I just imported the
work table it was pointed to, and set it's .RecordSource to that
table within the app... then it worked. Then I changed it back
to pointing to the work table, kept clearing
.LinkChild/MasterFields, and the Fushlurggener thing started
working again.
When you change the recordsource of a parent form with a subform,
you have to reset the link fields on the child form. When you change
the form object embedded in the child form control, you have to
reset the link fields.

This is the way Access linked forms have always worked.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Jul 18 '06 #6

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

Similar topics

3
by: DD | last post by:
I want to link a form to another form by a Cmd Button. CustomerID = CustomerID I want the form to open from the Cmd Button as if it was acting in the same way as subform What would be the code?...
1
by: Alienz | last post by:
Alien hello to whoever is reading today. Ill try to explain this as simply as possible its just a weird thing thats happening here in Access 2000 subforms.. I think something small is out of...
25
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...
1
by: Terrell Miller | last post by:
Help, I'm getting strange results on a subform and I'm wondering if anybody knows what is causing it... I have a form linked to TableA. On that form is a tab control. Page1 is just the controls...
9
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...
4
by: virtualgreek | last post by:
Dear All, First of all I would like to take the time to thank you all for your efforts and time spent at this wonderful forum. I have found it very helpful with numerous examples available for...
3
by: bbatson | last post by:
Suppose I have a form named Form1. On Form1 there is a subform named Subform1. Subform1 shows all transactions (and the date of the transactions) for the customer selected on Form1. I am trying to...
3
by: bbatson | last post by:
Suppose I have a form named Form1. On Form1 there is a subform named Subform1. Subform1 shows all transactions (and the date of the transactions) for the customer selected on Form1. I am trying to...
8
Megalog
by: Megalog | last post by:
Hey guys.. my turn to ask a question: I'm having a weird issue with a form I've reworked. This form has a combo box, which when used is changing the recordsource of a subform. This subform has...
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
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,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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,...
0
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...

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.