473,378 Members | 1,344 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

showing only relevant information due to active textbox

hello there

Info: I have a form on which is displayed information, customer code,
address and balance etc..
on that form i also have start of the current week, which is
displaying 29th march 2004 today for instance. this text box is
active, what i mean is when i press the plus or minus keys this text
box moves up and down one week.
now i also have on this form a subform of sales, which is a customers
weekly orders, this displays product code, mon, tue, wed, thur, fri,
sat, sun.

The problem: what i want to do is diplay the relevant information due
to the week start.
you see, a customer can change their order permanently, but i still
need to keep a record of it to display,
for example:
in my sales table for customer A100
Code StartDate
FCP 01/05/1999
FCP 15/03/2004
SSP 19/04/2004

so above you can see that this customers weekly order has changed for
FCP to take effect on 15/03/2004.

so what i want to do is display only the information which is relevant
to the weekly start date, i.e. this week for customer A100 I only want
to display the records of
FCP 15/03/2004
SSP 19/04/2004
and when i move through the weeks it will show only the relevant
information.

if anyone has any ideas please let me know, anything would be a great
help
Nov 12 '05 #1
1 1949
I'm not quite following the schema on your subform (the "mon, tue,
wed,..." stuff). But, presumably you've got a Sales Date somewhere
in there. If so:

Make the subform's Record Source a query that uses the date from the
parent form as a criterion for your Sales Date.

You can refer to the parent form text box like this (air code):
Forms![ParentFormName]![NameTextBoxWithDate]

So, the datasource for your subform would look something like this
(assuming the parent form is named frm_Sales and the text box is named
txt_CurrentDate):

SELECT tbl_Sales.*
FROM tbl_Sales
WHERE (((tbl_Sales.SalesDate) Between
[Forms]![frm_Sales]![txt_CurrentDate] And
([Forms]![frm_Sales]![txt_CurrentDate]+7)));

-Matt

On 1 Apr 2004 02:53:54 -0800, ra**********@hotmail.com (Damien Ramsey)
wrote:
hello there

Info: I have a form on which is displayed information, customer code,
address and balance etc..
on that form i also have start of the current week, which is
displaying 29th march 2004 today for instance. this text box is
active, what i mean is when i press the plus or minus keys this text
box moves up and down one week.
now i also have on this form a subform of sales, which is a customers
weekly orders, this displays product code, mon, tue, wed, thur, fri,
sat, sun.

The problem: what i want to do is diplay the relevant information due
to the week start.
you see, a customer can change their order permanently, but i still
need to keep a record of it to display,
for example:
in my sales table for customer A100
Code StartDate
FCP 01/05/1999
FCP 15/03/2004
SSP 19/04/2004

so above you can see that this customers weekly order has changed for
FCP to take effect on 15/03/2004.

so what i want to do is display only the information which is relevant
to the weekly start date, i.e. this week for customer A100 I only want
to display the records of
FCP 15/03/2004
SSP 19/04/2004
and when i move through the weeks it will show only the relevant
information.

if anyone has any ideas please let me know, anything would be a great
help


Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Damien Ramsey | last post by:
hello there Info: I have a form on which is displayed information, customer code, address and balance etc.. on that form i also have start of the current week, which is displaying 29th march...
2
by: Technical Group | last post by:
Friends, Can anybody help me out by sending a piece of C# code showing how to add an active directory user to a particular user group? If the group does not exist, then create it. Thanks in...
1
by: Henry | last post by:
I was trying to work through the Lab 2 exercises in the Microsoft's Windows-Based Applications in Visual C#. While I am not showing any errors I am also not seeing the mainMenu object when I run...
0
by: Kannan | last post by:
My application is an MFC application but since MFC is essentially a Object Oriented wrapper for Win32 I am taking the liberty to post my question here. I also must confess that I am not an Active X...
0
by: Chung Leong | last post by:
In this brief tutorial I'll describe how you retrieve information from an Active Directory through the OLE-DB extension. While it is possible to use the LDAP extension to achieve the same goal, as...
1
by: want2learn | last post by:
Hi when i run my calendar.aspx site im just getting a blank site. Why do it not show the calendar !? Calendar.aspx <%@ Page Language="VB" AutoEventWireup="True" %> <%@ Import...
1
by: Grimm | last post by:
I am developing an internalk inteface that integrates alot of seperate tools into one interface. The current version uses one Iframe inside a div layer for positioning. Currently the seperate web...
2
by: mdejac | last post by:
I was wondering why the background color is not showing up in Mozilla. When I view the page there is a light blue background, when it should be black. Thank you for any help. ...
1
by: Andy B | last post by:
I have this code: protected void EditEventsWizard_NextButtonClick(object sender, WizardNavigationEventArgs e) { //get the values from the DetailsView TextBox StartTime =...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.