Re: displaying two query results together

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I created a command button to create a billing report for all customers so
that is taken care of. I attached the two text boxes to a table DATESORT. I
just need to configure each query to use the last saved date entries in the
DATESORT table as the Between parameters for the Date Added column in my
query. Of course, I might have to go back to Unbound text boxes but I believe
this could be a viable alternative. I’m continuing to work on it.

"Harry" wrote:

For Smartin: Each customer has only one protocol.
For John Vinson: Thanks for helping with the date display issue. Below is
the exact code I have been using for “high-speed” customers.

SELECT [CLIENT TOTAL].Mailbox, [CLIENT TOTAL].Customer, [CLIENT
TOTAL].[CustID-DLB#], [CLIENT TOTAL].[Category-ID], [CLIENT
TOTAL].[Billing-ID], [CLIENT TOTAL].Fee, [CLIENT TOTAL].Currency, [CLIENT
TOTAL].[Date Added]
FROM [CLIENT TOTAL]
WHERE ((([CLIENT TOTAL].Fee)>0) AND (([CLIENT TOTAL].[Primary
Protocol])<>"Async" Or ([CLIENT TOTAL].[Primary Protocol])="Bisync" Or
([CLIENT TOTAL].[Primary Protocol])="SNA"))
ORDER BY [CLIENT TOTAL].Mailbox;

The “dial-up” customers query is exactly the same except there is an “equal
to” symbol in place of the “not equal to” symbol.

Now comes the sorting by the date they became a customer (for billing
purposes). I created a small form (SORT DATE) with two unbound text boxes.
SortDateA (default value is Date()) and SortDateB (default value is
#11/4/2005#). 11/4/2005 is when we got our first customer. So I want to be
able to create a billing report for that time period or anywhere in between.

According to your example, this is how the date code would be written (?)
=[Forms]![SORT DATE]![SortDateA]
=[Forms]![SORT DATE]![SortDateB]

Please help me join these bits of code to the main body of the query. I have
tried and I get prompted to Enter Parameter Values labeled: [Forms]![SORT
DATE]![SortDateA] and =[Forms]![SORT DATE]![SortDateB]

Also, when I enter the values in the SORT DATE form, is it enough to just
save the form and exit? Will the queries respond to those values that I enter
when I run the queries?


"John Vinson" wrote:

On Tue, 12 Sep 2006 17:06:01 -0700, Harry
<Harry@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

Great idea! I'm working on that. However, I am trying to set up one of my
time period fields with a default value of 11/1/2005. I am trying to do this
in the properties of the (unbound) text box. I keep getting a default value
of 12/30/1899 displayed in the text box. I have tried a number of
combinations but I end up with the same result. What is going on?

It's dividing 11 by 1, and that result by 2005; this gives
0.005486284289276, which corresponds to #12/30/1899 00:07:54#.

Try setting the default value to #11/1/2005# to get November 1. The #
indicates a date value.

John W. Vinson[MVP]

.



Relevant Pages

  • Re: Strange
    ... The Text Boxes are Bound to the Customers Table and the "find" combo Boxes arte unbound. ... Public Function util_ShowInfo(frm As Form, strField As String, varInfo As Variant) As Boolean ... strCriteria = BuildCriteria ...
    (microsoft.public.access.gettingstarted)
  • Re: An incident at the grocery store
    ... The grocer has some fruit lined up in boxes along the sidewalk ... There were about a dozen customers therein ... in reply and left the store, leaving a cloud of attitude behind him. ... Free demo online at www.pmilligan.net/palm/ ...
    (rec.motorcycles)
  • Re: An incident at the grocery store
    ... The grocer has some fruit lined up in boxes along the sidewalk ... There were about a dozen customers therein ... I verbally informed the checkout clerk of the incident. ... in reply and left the store, leaving a cloud of attitude behind him. ...
    (rec.motorcycles)
  • Re: Text box not showing appopriate information
    ... Have you considered stacking text boxes for each value, ... > I am designing a report for our customers to show upcoming changes to ... > feeds into a report. ... but leaves unwanted white space after the last ...
    (microsoft.public.access.reports)