Hi,
This is wierd.... I had given filters to a report and when a cmd button is clicked, the filtered report (Data having a particular date) is opened. This worked fine yesterday. but today it is not filtering the data in the report... Could someone tell me i have edited the coding by mistake? -
DoCmd.OpenReport "ReportName", acViewPreview, , "Date >= From_Date" & "< To_Date"
-
3 1101 JKing 1,206
Recognized Expert Top Contributor
Hi,
This is wierd.... I had given filters to a report and when a cmd button is clicked, the filtered report (Data having a particular date) is opened. This worked fine yesterday. but today it is not filtering the data in the report... Could someone tell me i have edited the coding by mistake? -
DoCmd.OpenReport "ReportName", acViewPreview, , "Date >= From_Date" & "< To_Date"
-
I think your where criteria is malformed.
You either want: -
DoCmd.OpenReport "ReportName", acViewPreview, , "Date >= From_Date AND Date <= To_Date"
-
-
'or alternatively if you are referencing controls on a form
-
-
DoCmd.OpenReport "ReportName", acViewPreview, , "Date >= #" & Me.From_Date & "# AND Date <= #" & Me.To_Date & "#"
-
I think your where criteria is malformed.
You either want: -
DoCmd.OpenReport "ReportName", acViewPreview, , "Date >= From_Date AND Date <= To_Date"
-
-
'or alternatively if you are referencing controls on a form
-
-
DoCmd.OpenReport "ReportName", acViewPreview, , "Date >= #" & Me.From_Date & "# AND Date <= #" & Me.To_Date & "#"
-
Dude,
You are a life saver......
JKing 1,206
Recognized Expert Top Contributor
Dude,
You are a life saver......
Haha,
You're welcome :)
Jared
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Scott |
last post by:
Hello:
I have a stored procedure for generating our invoices in Crystal
Reports. I have added a new field to the SP, but when I try to add the
field to my Crystal Report invoice, the field isn't...
|
by: Chris Minchin |
last post by:
Hi there, I am a bit of a newboy to access I have a database which I wish to
have pictures.
for example: record one will have data and a picture, record two will have
different data and a diferent...
|
by: Mike Turco |
last post by:
My phone directory project is moving along. Its a series of reports and
documents that all get imported into Word, via RTF files or whatever.
I need to create a couple of indexes. Is there a way...
|
by: Web Team |
last post by:
Hi All,
Can someone please explain how I go about adding a control (Say for
example a panel) to a custom web control.
I've tried this:
Protected Overrides Sub Render(ByVal output As...
|
by: Andy Chan |
last post by:
First of all, thanks to Crirus and Fergus for helping me with a related
posted a few days ago.
Ok, I can add images to my form (for whatever reason I cannot added more
than 1 image within the...
| |
by: Troy |
last post by:
ok, I fat-fingered the Line control in the Crystal Reports tab of the toolbox and now its gone. I can still insert lines with a right-click, but where is the Line control?
I found the...
|
by: patang |
last post by:
In my VB.Net Project, I have a couple of reports (first.rpt, second.rpt etc).
Initially, when I created the reports I put them in the Solutions folder.
Accidently I excluded the rpt files from the...
|
by: Mike Abbott |
last post by:
A fairly recent convert to Access I have succeeded in getting it to work
well on my current fairly simple requirements.
Can someone help me with another step?
I have three simple reports.
...
|
by: SMcK |
last post by:
I have a PDA database program that allows me to use a bitmap image as a
background for a drawing field. Users can draw digital ink on top of
the bitmap and save the new ink as an OLE object in the...
|
by: AC |
last post by:
I had a page that does some event setup on window.onload:
function prepEvents()
{
document.getElementById("menumap_sales").onmouseover =
swapMenuSales;
// etc
}
window.onload = prepEvents;
|
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,...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
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,...
|
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...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |