Help with MS Access

krismcmillan

New Member
Joined
Aug 22, 2014
Messages
17
I have got a query that shows the following information


-- removed inline image ---


I want to put this information onto a form, but it needs to be like this.


-- removed inline image ---


This is what I need “If Date Added = Date (text box), then display the figure that’s in the countOfSum box”

Is it possible to do this in MS Access, could you please provide the steps for me?

Thanks

Kris
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
You actually don't need dcount if each of the dates to be compared as well as the countofSum box are in separate fields and in the same query or form (just the IIf). Otherwise you have to keep all the sources open.
 
Last edited:
Upvote 0
What is the DCount for if he/she wants the count figure that is already in the countOfSum "box" (textbox?), wherever that is?

You can do this by creating an AfterUpdate event for the control that gets the date input, but I don't know what to do if it does because I don't understand this
display the figure that’s in the countOfSum box” Display where? How? Is it hidden and you want to unhide it? You want a message to pop up? That will be my assumption.
In that event write
If Me.nameofcontrol = nameofothercontrol then
msgbox Me.countOfSum
End If

Becareful of how you use the reserved word 'Date'
 
Last edited:
Upvote 0

Forum statistics

Threads
1,221,831
Messages
6,162,242
Members
451,756
Latest member
tommyw

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