Populate subform with blank records

Mi

Board Regular
Joined
Sep 19, 2004
Messages
77
Not sure how to search for a solution to this problem so here goes.

Table customers - names, city, etc
Table questions - currently 37 questions needing a yes/no answer

I would like to create a form/subform that pulls up the customer and then shows ALL the questions with a drop down y/n answer for each question. I am only able to get it to show one question at a time in the subform. I am stumped on where to begin.

Thanks for your assistance

Mi
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Sounds like you may have your subform set up to just show a single record.

Go into the Properties of your Subform, and try changing the Default View setting to "Continuous Form" (it is probably on "Single Form").
 
Upvote 0
no, it is on Continuous Forms. Even in datasheet view and it still only shows those questions that have been answered.

I might have to figure it another way.

I did not want to have to create unbound questions and then transfer the "results" to the actual questions since I am not sure how many questions there could end up being.
 
Upvote 0
Looks to me that you are missing a junction table:

CustomerID
QuestionID
QuestionAnswer


and then you would need to do an append query to append all questions to the table for a customer.
 
Upvote 0
Aha. Append Query. I think that is the missing element. I will need to look into how to do that.
 
Upvote 0
Well, I looked into it and was defeated on how to make the form and subform to work.

I have the junction table with:
CustomerID (from tblCust)
QuestionID (from tblElement)
QuestionAnswer -Y/N combo box

I did create an append query and it will add the questions to the table.

Main form shows the CustomerID, subform is linked to the Main form by that ID.

Can I get a little more help please. I have not had to make a form work like this before.

Thanks again,
Mi
 
Upvote 0

Forum statistics

Threads
1,224,517
Messages
6,179,233
Members
452,898
Latest member
Capolavoro009

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top