473,322 Members | 1,379 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,322 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 1946
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.