-
WSrrdavis
AskWoody LoungerYes, you are correct. it is a one-to-many relationship.
-
WSrrdavis
AskWoody LoungerOK, lets try this again. I ended up editing an earlier post instead of replying to yours. If you get this twice, now, I apologize:
The master and child links in the subform control appear to be correct. They are both pointing to the RecordID fields of their corresponding bound tables.
To be clear: The parent form is bound to tblReportDesc. TblReportDesc has an autonum primary key named RecordID, along with a ReportTitle field. The parent form also has a combo box that gets its info directly from tblReportDesc, also. RecordID is the bound field and ReportTitle is the sole field that shows in the cbo. The subform is bound to tblReportItem. The foriegn key for this table is RecordID, corresponding to the primary key in tblReportDesc. Yes, I have set up a relationship between the two tables. Changing the item selected in the combo box should change the data displayed in the subform. It is not.
Ultimately, what I am looking to do is to be able to update (add/modify/delete) records in tblReportItem directly from the subform. I thought I’ve done this before, but can’t find my old code. I don’t seem to be able to type directly into the subform datasheet as it is now. Any thoughts?
-
WSrrdavis
AskWoody LoungerOK, lets try this again. I ended up editing an earlier post instead of replying to yours. If you get this twice, now, I apologize:
The master and child links in the subform control appear to be correct. They are both pointing to the RecordID fields of their corresponding bound tables.
To be clear: The parent form is bound to tblReportDesc. TblReportDesc has an autonum primary key named RecordID, along with a ReportTitle field. The parent form also has a combo box that gets its info directly from tblReportDesc, also. RecordID is the bound field and ReportTitle is the sole field that shows in the cbo. The subform is bound to tblReportItem. The foriegn key for this table is RecordID, corresponding to the primary key in tblReportDesc. Yes, I have set up a relationship between the two tables. Changing the item selected in the combo box should change the data displayed in the subform. It is not.
Ultimately, what I am looking to do is to be able to update (add/modify/delete) records in tblReportItem directly from the subform. I thought I’ve done this before, but can’t find my old code. I don’t seem to be able to type directly into the subform datasheet as it is now. Any thoughts?
-
WSrrdavis
AskWoody LoungerThey both point to RecordID of their corresponding tables. It appears to be correct to me.
-
WSrrdavis
AskWoody LoungerThey both point to RecordID of their corresponding tables. It appears to be correct to me.
-
WSrrdavis
AskWoody LoungerHi Wendell and Charlotte. Thanks for your responses. I should have known about the field type needing to be the same.
However, I am still have trouble getting my form to update properly. When I first load the form, the subform loads with data associated with the first record of the table bound to the main form. I would expect this, although I need to change it so that it is blank at first. The problem is that changing the selected item in the combo box does not update the subform automatically. Is there some code I should be including? I created an OnChange event proc on the combo box to requery the subform, but that had no effect. Any suggestions?
Just to be clear: The combo box has a hidden bound field that is linked to the corresponding foreign key in the subform. And yes, they are now of the same field type.
Actually, the end result is that I want to be able to make changes/additions to the underlying table bound to the subform. I thought that I had done this before, but it did not allow me to do this just a while ago. Do I need to load a recordset into the subform instead and write the change back to the table, or am I allowed to write back to the table directly. I don’t remember how I did this before.
Again, thanks for all your help.
-
WSrrdavis
AskWoody LoungerHi Wendell and Charlotte. Thanks for your responses. I should have known about the field type needing to be the same.
However, I am still have trouble getting my form to update properly. When I first load the form, the subform loads with data associated with the first record of the table bound to the main form. I would expect this, although I need to change it so that it is blank at first. The problem is that changing the selected item in the combo box does not update the subform automatically. Is there some code I should be including? I created an OnChange event proc on the combo box to requery the subform, but that had no effect. Any suggestions?
Just to be clear: The combo box has a hidden bound field that is linked to the corresponding foreign key in the subform. And yes, they are now of the same field type.
Actually, the end result is that I want to be able to make changes/additions to the underlying table bound to the subform. I thought that I had done this before, but it did not allow me to do this just a while ago. Do I need to load a recordset into the subform instead and write the change back to the table, or am I allowed to write back to the table directly. I don’t remember how I did this before.
Again, thanks for all your help.
-
WSrrdavis
AskWoody LoungerActually, the solution I’m creating is in Access. I can never get Access Charts to do what I want them to do, so I have created an Excel spreadsheet with charts formated as I want them. The end result of this Access solution is a report. When the report is run, one of its actions displays a chart that is linked from Excel. it is included in my report using Paste Special… . When the report is opened in Access, the Excel Chart updates in data prior to being displayed. Its datasource is a linked query from the Access solution I’m creating. So, when I open the report in Access, it pulls in a chart from Excel, but before the chart is displayed, the chart updates it datasource by re-querying Access. Neat little circular logic, I think. This worked well when the Access query did not include parameters. I was just using static criteria in the query grid. It worked fine. When I changed the criteria to use parameters, that is when it broke.
So, Adam, while your solution doesn’t quite fit my design, you got me thinking. Is it possible to construct an SQL statement in Access and present it to Excel to be used in MSQ? I know how to construct the SQL statement, but I wouldn’t know where to begin to get MSQ to use it.
-
WSrrdavis
AskWoody LoungerActually, the solution I’m creating is in Access. I can never get Access Charts to do what I want them to do, so I have created an Excel spreadsheet with charts formated as I want them. The end result of this Access solution is a report. When the report is run, one of its actions displays a chart that is linked from Excel. it is included in my report using Paste Special… . When the report is opened in Access, the Excel Chart updates in data prior to being displayed. Its datasource is a linked query from the Access solution I’m creating. So, when I open the report in Access, it pulls in a chart from Excel, but before the chart is displayed, the chart updates it datasource by re-querying Access. Neat little circular logic, I think. This worked well when the Access query did not include parameters. I was just using static criteria in the query grid. It worked fine. When I changed the criteria to use parameters, that is when it broke.
So, Adam, while your solution doesn’t quite fit my design, you got me thinking. Is it possible to construct an SQL statement in Access and present it to Excel to be used in MSQ? I know how to construct the SQL statement, but I wouldn’t know where to begin to get MSQ to use it.
-
WSrrdavis
AskWoody LoungerHans–
Thanks for the suggestion. I looked into transferring the recordset to Excel through TransferDatabase method, but that will create a new spreadsheet file each time. I have several charts already formated that I just need to update data to. If need be, I could create a chart in Excel using automation from Access, but that is very advanced for my skills and I’m not sure I’d be able to get it done. Is there code already written for this sort of automation that I could use as a template? Again, thanks for your help.
-
WSrrdavis
AskWoody LoungerHans–
Thanks for the suggestion. I looked into transferring the recordset to Excel through TransferDatabase method, but that will create a new spreadsheet file each time. I have several charts already formated that I just need to update data to. If need be, I could create a chart in Excel using automation from Access, but that is very advanced for my skills and I’m not sure I’d be able to get it done. Is there code already written for this sort of automation that I could use as a template? Again, thanks for your help.
-
WSrrdavis
AskWoody LoungerI think I answered my own question: When I placed the SQL code into the criteria row, it needed to be wrapped by parentheses. Adding the keyword IN in from on the Select statement before the parentheses solved the problem. I guess I just needed to talk out loud.
-
WSrrdavis
AskWoody LoungerI think I answered my own question: When I placed the SQL code into the criteria row, it needed to be wrapped by parentheses. Adding the keyword IN in from on the Select statement before the parentheses solved the problem. I guess I just needed to talk out loud.
-
WSrrdavis
AskWoody LoungerGood suggestion! This works great, except that the OoO assistant sends a message with the subject Out of Office Autoreply. Within the OoO setup, you can set a rule to send a template in response to an incoming message, but this, then, produces 2 message–the OoO autoreply and the one produced by the template. Can the OoO Autoreply template be altered, or can the rule be set NOT to send an OoO message, but to only process the associated rules? I could not find a way to do either.
-
WSrrdavis
AskWoody LoungerGood suggestion! This works great, except that the OoO assistant sends a message with the subject Out of Office Autoreply. Within the OoO setup, you can set a rule to send a template in response to an incoming message, but this, then, produces 2 message–the OoO autoreply and the one produced by the template. Can the OoO Autoreply template be altered, or can the rule be set NOT to send an OoO message, but to only process the associated rules? I could not find a way to do either.
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
W11 24H2 – Susan Bradley
by
G Pickerell
1 hour, 50 minutes ago -
7 tips to get the most out of Windows 11
by
Alex5723
9 hours, 28 minutes ago -
Using Office apps with non-Microsoft cloud services
by
Peter Deegan
5 hours, 58 minutes ago -
I installed Windows 11 24H2
by
Will Fastie
21 minutes ago -
NotifyIcons — Put that System tray to work!
by
Deanna McElveen
5 hours, 17 minutes ago -
Decisions to be made before moving to Windows 11
by
Susan Bradley
3 minutes ago -
Port of Seattle says ransomware breach impacts 90,000 people
by
Nibbled To Death By Ducks
13 hours, 31 minutes ago -
Looking for personal finance software with budgeting capabilities
by
cellsee6
14 hours, 53 minutes ago -
ATT/Yahoo Secure Mail Key
by
Lil88reb
1 day, 2 hours ago -
Devices with apps using sprotect.sys driver might stop responding
by
Alex5723
1 day, 6 hours ago -
Neowin – 20 times computers embarrassed themselves with public BSODs and goofups
by
EP
1 day, 15 hours ago -
Slow Down in Windows 10 performance after March 2025 updates ??
by
arbrich
17 hours, 24 minutes ago -
Mail from certain domains not delivered to my outlook.com address
by
pumphouse
23 hours, 32 minutes ago -
Is data that is in OneDrive also taking up space on my computer?
by
WShollis1818
1 day, 10 hours ago -
Nvidia just fixed an AMD Linux bug
by
Alex5723
3 days, 1 hour ago -
50 years and counting
by
Susan Bradley
8 minutes ago -
Fix Bluetooth Device Failed to Delete in Windows Settings
by
Drcard:))
2 hours, 57 minutes ago -
Licensing and pricing updates for on-premises server products coming July 2025
by
Alex5723
3 days, 12 hours ago -
Edge : Deprecating window.external.getHostEnvironmentValue()
by
Alex5723
3 days, 13 hours ago -
Rethinking Extension Data Consent: Clarity, Consistency, and Control
by
Alex5723
3 days, 13 hours ago -
OneNote and MS Word 365
by
CWBillow
3 days, 14 hours ago -
Ultimate Mac Buyers Guide 2025: Which Mac is Right For You?
by
Alex5723
3 days, 15 hours ago -
Intel Unison support ends on Windows 11 in June
by
Alex5723
3 days, 15 hours ago -
April 2025 — still issues with AMD + 24H2
by
Kevin Jones
1 day, 6 hours ago -
Windows 11 Insider Preview build 26200.5518 released to DEV
by
joep517
4 days, 2 hours ago -
Windows 11 Insider Preview build 26120.3671 (24H2) released to BETA
by
joep517
4 days, 3 hours ago -
Forcing(or trying to) save Local Documents to OneDrive
by
PateWilliam
4 days, 11 hours ago -
Hotpatch for Windows client now available (Enterprise)
by
Alex5723
3 days, 23 hours ago -
MS-DEFCON 2: Seven months and counting
by
Susan Bradley
3 days ago -
My 3 monitors go black & then the Taskbar is moved to center monitor
by
saturn2233
4 days, 20 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.