Subform to display data & allow entry

Smitty

Legend
Joined
May 15, 2003
Messages
29,536
I have a subform that displays General Ledger transaction data based on a ComboBox (Property Name) & Text Box for date selection on the main form. Simple enough, a user selects a department/date and the relevent transactions & GL codes for each property are returned in the subform.

What I'd like to do is allow the user to enter transaction amounts based on the date they select, with the previous day's entries displayed next to blank text boxes for current day's entries. Right now I have Current Day displayed as a "placeholder" from the subform query. Unfortunately, I'm a bit stumped as to what's going to be the best approach for adding text boxes for current day entries that are bound to the GL codes currently displayed. Once entered, the data can be written to the same transaction table that is feeding the current sub form.

cashreport2.jpg


I've been messing around with a second subform, but haven't had much luck so far.

Thanks!
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Hi Smitty,

I'm guessing that you have a subquery for displaying Previous next to Current. In general subqueries are not data entry views. (Nor are Union queries, crosstabs, or Totals queries).

One solution is to have a button that launches a popup, filtered to the current record and based directly on the table. Once the user fills it in, close the popup and refresh the main view.

Denis
 
Upvote 0
Thanks Denis,

The problem is that the current record (day) hasn't been created yet, so previous day is a query tied to existing records.

I was actually able to add a second subform tied to an empty temp table, which looks like it'll work. Now I just need to see if I can synchronize scrolling between the two.

cashreport3.jpg
 
Upvote 0
Take a look at The Access Web -- there is a page on the syntax for referencing one control from another, including subform to unlinked subform.
You can use that syntax in the Master / Child fields to sync the forms.

Denis
 
Upvote 0

Forum statistics

Threads
1,224,551
Messages
6,179,476
Members
452,915
Latest member
hannnahheileen

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