Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / June 2007

Tip: Looking for answers? Try searching our database.

Forms

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Muriukis - 20 Jun 2007 10:11 GMT
Help Guys I have 2  textbox controls on a form The first textbox displays  a
Transaction Date from a table called sales Now I want the second box to show
the Total count of products on that date and before am using the following
expression
=DCount("[ProductsCode]","Products","[DateIn]"<= "[Date]","Sales" where
datein is a field inthe Products table that I want to use as reference for
the counting What am I doing wrong and how can I get the total count of the
products using the date textbox? I want when I select a date in the Date
textbox other textbox to show the count of products upto that date e.g
20-apr-07 I want all count of products upto that date
Dennis - 20 Jun 2007 12:39 GMT
=DCount("[ProductsCode]","Products","[DateIn] <= " &
[Forms]![NameofForm]![FirstTextBox])

if your text box is not a date, then either make it a date or use

=DCount("[ProductsCode]","Products","[DateIn] <= #" &
[Forms]![NameofForm]![FirstTextBox] & "#")

> Help Guys I have 2  textbox controls on a form The first textbox displays  a
> Transaction Date from a table called sales Now I want the second box to show
[quoted text clipped - 6 lines]
> textbox other textbox to show the count of products upto that date e.g
> 20-apr-07 I want all count of products upto that date
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.