Create Record in related table when field equals a certain value

Jasuan

New Member
Joined
Jan 16, 2014
Messages
34
Office Version
  1. 365
Platform
  1. Windows
Hey all,

I am new to access, but pretty good at excel.

I have two tables. Table X is the table users primarily use to input case data. Table Y is the table users input case details should it to a proposed status. The tables are connected on a one-to-one relationship (ID). I would like a record to be created in table Y when a certain field is updated to equal a certain value.

Either:
A) The record is created when field "Status" is changed to "Proposed." Problem I foresee with this is if someone changes it to proposed, changes it, then goes back to proposed, it will create multiple records in Table Y for only one record in Table X; or

B) The record is created when field "CaseNumber" is anything but blank ("").

Thanks in advance for your help.
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
in your main form, you could put a subform of the other table Y.
in the subform property
set the LINK MASTER FIELD = ID
set the LINK CHILD FIELD = ID
Now users can enter data into Y table linked to X.

now set the property of this form to VISIBLE = NO
set these 2 events:

form.onCurrent
subform.visible = cboStatus = "Proposed"

and
cboStatus_AFTERUPDATE
subform.visible = cboStatus = "Proposed"

the child record will only show if the status is proposed, or changed to proposed.
 
Upvote 0

Forum statistics

Threads
1,221,854
Messages
6,162,450
Members
451,765
Latest member
craigvan888

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