•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the MS Access and FileMaker Pro section within the Web Development category of DaniWeb, a massive community of 361,870 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,374 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MS Access and FileMaker Pro advertiser:
Views: 1793 | Replies: 5 | Solved
![]() |
| |
•
•
Join Date: Apr 2007
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
Hi! I'm a foreigner working in japan and my job has recently put me in a position where I have to use Access for the first time. I've managed to create some tables and establish relationships between them, but I got stuck trying to create a form with subforms.
I have a table with PlaceNames and PlaceID's (primary key) to which I linked (one to many) many other tables containing various data for every place.
To make data entry easier, I would like to create a form where I have the PlaceName and PlaceID in a main form and a subform for every other table linked through that PlaceID. When I do this, however, only the subforms for which I've already inserted some data show with all the fields. Subforms that don't contain any data yet, show up without any fields, which makes data entry impossible...
It might be a silly question, but I would really appreciate it if someone could tell me how to solve this problem. Maybe it is not possible and I misunderstood the whole concept of forms?... Either way, it would help me a lot if you could let me know!
Thanks!
I have a table with PlaceNames and PlaceID's (primary key) to which I linked (one to many) many other tables containing various data for every place.
To make data entry easier, I would like to create a form where I have the PlaceName and PlaceID in a main form and a subform for every other table linked through that PlaceID. When I do this, however, only the subforms for which I've already inserted some data show with all the fields. Subforms that don't contain any data yet, show up without any fields, which makes data entry impossible...
It might be a silly question, but I would really appreciate it if someone could tell me how to solve this problem. Maybe it is not possible and I misunderstood the whole concept of forms?... Either way, it would help me a lot if you could let me know!
Thanks!
•
•
Join Date: Mar 2006
Location: Japan
Posts: 111
Reputation:
Rep Power: 3
Solved Threads: 10
For the sub forms, Do you want the fields to change based off the PlaceID? or will all the fields be the same? Do you have your subform showing in form view or datasheet view?
Who was the first person to look at a cow and say, "I think I'll squeeze these dangly things here, and drink whatever comes out!"
•
•
Join Date: Mar 2008
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 1
In my situation the fields in the subform should simply show the related records (if any) which are based on the PlaceID field in the main form. The Place ID in the main form is the link between the main form and the subform.
The subforms I am using are in form view rather than datasheet view.
As long as the subform underlying table has records the subform shows up fine. However, when there aren't any records, the main form just shows up with a big blank box where the subform should be (the subforms are on different tab pages). I would like the subform to appear with all the labels and fields (even if the fields are blank) so the user can enter data into the underlying table which the subform is based upon.
Thanks for your help in advance!
The subforms I am using are in form view rather than datasheet view.
As long as the subform underlying table has records the subform shows up fine. However, when there aren't any records, the main form just shows up with a big blank box where the subform should be (the subforms are on different tab pages). I would like the subform to appear with all the labels and fields (even if the fields are blank) so the user can enter data into the underlying table which the subform is based upon.
Thanks for your help in advance!
•
•
Join Date: Mar 2006
Location: Japan
Posts: 111
Reputation:
Rep Power: 3
Solved Threads: 10
I guess I am confused because whenever I have made forms with subforms, the form fields in the subform are always visible regardless of whether data is present or not. Is it possible for you put put up your database (or a part of it) so I can get a better understanding of what is happening?
Who was the first person to look at a cow and say, "I think I'll squeeze these dangly things here, and drink whatever comes out!"
•
•
Join Date: Mar 2008
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 1
Topina...
I finally figured it out and it was so simple. I'm almost embarrassed at how simple it was. I didn't have the subforms set to allow for additions, edits, and deletions. Once I changed those properties all is well.
I hope this helps you if you are still looking for the answer.
Thank you HI2Japan for your attempts to assist.
I finally figured it out and it was so simple. I'm almost embarrassed at how simple it was. I didn't have the subforms set to allow for additions, edits, and deletions. Once I changed those properties all is well.
I hope this helps you if you are still looking for the answer.
Thank you HI2Japan for your attempts to assist.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb MS Access and FileMaker Pro Marketplace
- Defaulting values in MS Access subform (MS Access and FileMaker Pro)
- Passing variables into form fields (PHP)
- Editing/Creating PHP Fields - Novice! Help? (PHP)
- Populating a fields on a form base on a selected item from a droplist. (PHP)
- Loing authentication fields from 2 tables? (ASP)
- searching multiple fields (PHP)
- Add Fields to the Details View of Folders (Windows tips 'n' tweaks)
- Tab control on hidden input fields (HTML and CSS)
Other Threads in the MS Access and FileMaker Pro Forum
- Previous Thread: Access/Jet SQL: Date/time issues
- Next Thread: MS Access vs. MySQL


Hybrid Mode