473,394 Members | 1,778 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,394 software developers and data experts.

Subform dissapears when adding a new record to main form

Hi All,

I have a form which lists information about customers, and I can also add
new customers.
This form contains a subform which lists all the products a customer bought.
If I browse to existing customers, the subform shows properly the products
they bought. But if I want to add a new customer, the subform doesn't show
anymore. If I fill in the details of the form, and move the cursor to a new
customer, and then I come back to my last customer entered, I can fill in
the subform. However, this procedure doesn't seem to elegant to me. I would
like that after I fill in the last details of the customer, to be able to
move to the product details in the subform.

Any advice appreciated.

Regards,
Nicolae
Nov 13 '05 #1
2 1325
Nicolae Fieraru wrote:
Hi All,

I have a form which lists information about customers, and I can also add
new customers.
This form contains a subform which lists all the products a customer bought.
If I browse to existing customers, the subform shows properly the products
they bought. But if I want to add a new customer, the subform doesn't show
anymore. If I fill in the details of the form, and move the cursor to a new
customer, and then I come back to my last customer entered, I can fill in
the subform. However, this procedure doesn't seem to elegant to me. I would
like that after I fill in the last details of the customer, to be able to
move to the product details in the subform.

Any advice appreciated.

Regards,
Nicolae

Just a shot in the dark... If the subform is based on a query you may
want to use an event that runs a macro that does a requery. Had a
similar problem with my current project. I'm sure someone will pipe in
with the real answer.
Nov 13 '05 #2
Dear Chris,

Thank you for your support. I found the reason the subform was hiding.
Somebody who previously worked on the application before was setting the
visible property of the subform to false (in the code) in some conditions...
I commented out those lines and now everything works nice.

Thank you,
Nicolae
Nov 13 '05 #3

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

Similar topics

6
by: Ray | last post by:
I have a main form with a subform. The main form has a combo box which lists all the clients which in turn are displayed in the subform. The subform is bound to the combo box and all work well....
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...
5
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...
0
by: johnson_cy | last post by:
I am using Access 2000. My main form has a record source of a table (employeeTbl with key of . It is filtering the record results. My subform and mainform have the link child/link master set...
4
by: crystal | last post by:
I've checked the threads but haven't been able to come up with a solution to my issue. Help...... I have a simple form based on a table. Within the form is a subform that is also, through a Q,...
4
by: aqua404 | last post by:
I know this has been discussed, but I can't find a resolution. I have a subform on a form. The table with the data for the main form has 15,000 records. I am opening and then setting...
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...
3
by: paquer | last post by:
On my Main form I have a Command Button that opens a Subform in order to create a new Subform record. At this point I want the subform to show only the new record being created. Not all the...
7
by: FNA access | last post by:
I have a mainform that has a subform in the detail section and a subform in the footer section.(Both subforms are in datasheet view) When I click the navigation button to create a new record on the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.