MS ACC 2003, WS.
In the subform i have query showing the results according to this SQL. It shows (grouped) number of customer data belonging to a specific dealer/vendor has in a related table.
Used tables:
Dealer/Vendor table is called SE_DealerList
Customer table is called CustomerData
This SQL shows the result, between 2 dates (DateField0 and DateField2):
SELECT [SE_Dealer List].retailerNumber , [SE_Dealer List].retailerName, [SE_Dealer List].VisitingCity, Count(*) AS Expression1
FROM [SE_Dealer List] INNER JOIN CustomerData ON [SE_Dealer List].retailerNumber =CustomerData.D ealerID
WHERE ((CustomerData.[Invoicing Date]>=Forms!MainFor m!DateField0 And CustomerData.[Invoicing Date]<=Forms!MainFor m!DateField2))
GROUP BY (...)
Now: The query result is shown as a table in subform, where the DateField0 and DateField2 in the MAINform should automatically update the data shown in the subform.
How should i do it? I have tried update macros but i cannot find the right method...?
Please help!
Thx
3 1872 NeoPa 32,577
Recognized Expert Moderator MVP
I can't help much with the subform linking stuff I'm afraid, but you may want to use an easier form of WHERE clause as follows : - WHERE (CustomerData.[Invoicing Date] Between Forms!MainForm!DateField0 And Forms!MainForm!DateField2)
Thanks NeoPa, you helped me out with some new ideas on the last tip (I couldnt find it again so I wrote a new question?!)
Ill try some wild stuff tonight... !
NeoPa 32,577
Recognized Expert Moderator MVP
That's cool Rookie.
BTW - the other thread is here ( http://www.thescripts.com/forum/thread560998.html )
To find any of your created threads, just click on your name to be taken to your profile.
In the profile are options to see all posts by the selected member as well as to see all threads started by that member.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Simon Pleasants |
last post by:
Am something of a newbie at this, so please bear with any stupid
questions.
I have created a database to track shipments that we import. The
information is stored in a table and I have created a form which
displays the information from the table. The end users have access to
the form only - this is deliberate.
I have created some queries, including parameter queries, to aid them
which are accessible via buttons on the main form. ...
|
by: Dalan |
last post by:
I'm sure there is a workaround for this, but haven't found it yet. I
have a mainform with two subforms and after one or both of the
subforms are updated, then clicking the Refresh button on the mainform
(to show updated values), causes the updated subform(s) to
automatically scroll up to one blank line if a new record was entered,
or to the line that was edited. All of the prior subform records are
not viewable or accessible until exiting...
|
by: DFS |
last post by:
I've been working around this for years (I believe), so I figured someone
here might know:
Why won't a crosstab query accept a value from a form reference?
TRANSFORM Format(First(QtrAvg),'Fixed') AS FirstQtrAvg
SELECT PropertyCode, Survey, Question
FROM SurveyData
WHERE PropertyCode = Forms.MainForm.Subform.Form.PropertyCode
GROUP BY PropertyCode, Survey, Question
|
by: Greatmaze |
last post by:
Hi All,
I want to update a column in my Users table through a subform.
I have made a mainform where you can choose a Department (from
Department table), then a subform pops-up showing the users in that
Department.
Now I want to make 2 buttons on this subform to pop-up new (sub)forms
to add or delete a user to/from this Department, but this DepartmentID
must be updated in the User table, how can I fix this and how do I
refresh the first...
|
by: planetthoughtful |
last post by:
Hi All,
I have a mainform with a subform in which I show some task summary
data.
On the mainform I have a number of unbound controls that reflect values
relevant to each task in the subform. The unbound controls are
populated in the subform's OnCurrent even from a number of different
tables related to the records in tbl_tasks, which is the recordset
displayed in the subform.
| |
by: James Hallam |
last post by:
I have a form with a subform. When there are no entries in the
subform, I have an append query which makes a default entry in the
subform (for what I am doing there needs to be at least one value in
the subform).
The code in the form is this:
Private Sub Form_AfterInsert()
If Me.strWholeStr = 0 Then
DoCmd.SetWarnings False
|
by: Robert Jacobs |
last post by:
Please advise...
I currently have a Mainform (Customers) and a Subform (Service
Requests) with a one to many relationship (one customer, many service
requests) with a CustomerID that is unique for each customer and is
autofilled on the subform. Subform contains field called TicketID
(which there could be multiple instances of and is not referenced on
the mainform at all). I want to be able to type in a TicketID and
have the mainform...
|
by: virtualgreek |
last post by:
Dear all,
I have a scenario that is driving me nuts. (MS Access 2003)
I have a form/subform (Continuous form) where it gets its data from tables Order and Order_Details.
In the footer section of the subform I have a hidden textbox named txtOrder_Total_Amount which displays the total of the whole order. On the main form I have a bound contol from the Order table, namely Order.Order_Total_Amount_Euro
On the subform I have fields such...
|
by: jcf378 |
last post by:
Is it possible to set a main-form with an embedded subform to "Filter by Form", subsequently enter the desired variables in fields in BOTH the main-form and subform, and then save the resulting filter as a single query? or, do the variables entered on the main form need to be saved as its own individual query, and the variables entered on the subform saved as a separate query.
I ask because I would ideally like to take a single query,...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |