473,385 Members | 1,707 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,385 software developers and data experts.

Opening ms access report based on dates

1
Hello am trying opening a report from a form based on the current record selected which is a date but it cant display the specified DATE record it only diplays all dates please help me with this.....?

THIS FORMULAR WORK WITH OTHER RECODE'S BUT NOT DATES
WHERE CONDITION: ="DATE_PAID=" & [DATE_PAID]
OR
VISUAL BASIC: DoCmd.OpenReport "TUTION_R", acViewPreview, , , , "DATE_PAID = " & Me.DATE_PAID
Aug 8 '22 #1
3 8799
NeoPa
32,556 Expert Mod 16PB
Hi there.

Welcome to Bytes.com.

Let me start by advising that using capitals as you have is considered shouting on the web. You should understand that it's no less insulting or annoying in this context than it would be in real life - so please avoid it in future.

Otherwise, your issue is a very common one. Made worse by the fact that the approach you use generally works in America - but rarely elsewhere. As much of the coding work and examples posted comes from there, and many (Not all but many.) there don't realise the extra complications of portability across national boundaries, there are a lot of examples that won't work reliably outside of that great nation.

For details see Literal DateTimes and Their Delimiters (#). It should tell you everything you need to know on the subject.
Aug 8 '22 #2
DJRhino1175
221 128KB
I do something similar, but not with dates. Here is the code I use and should get you what you want.

Expand|Select|Wrap|Line Numbers
  1. [Field]=[Forms]![Form Name]![Field]
Aug 9 '22 #3
NeoPa
32,556 Expert Mod 16PB
No DJ!

That is absolutely not the right way to handle dates within a SQL string. It works in America - but pretty much nowhere else. Did you even read what I wrote before posting that unhelpful addition to the subject? Date literals should always be strings that are formatted specifically for SQL. The use of default formats is incompetent and lazy, and only for those who haven't yet been told how to do it properly. No-one here any longer has that excuse.
Aug 9 '22 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: lauren quantrell | last post by:
When I open an Access form I can have no recordset specified, then in the form's OnOpen event I can do something like: Me.paramaters = "@SomeColumn = 22)" Me.recordsource = "dbo.sproc123" But I...
9
by: RMC | last post by:
Hello, I'm looking for a way to parse/format a memo field within a report. The Access 2000 database (application) has an equipment table that holds a memo field. Within the report, the memo...
1
by: A49553 | last post by:
I am trying to e-mail reports from Access that are based on pass-through queries going to an Oracle database. I am using Access 2003 on a Windows XP OS. I was able to e-mail these on my previous PC...
32
by: wexx | last post by:
I have been looking for some time now (reading books off Safari, searching through forums,etc) I have found no solution to this problem. I turn to anyone of you that may be able to help me. I'm...
0
by: ChadK | last post by:
I am trying to open a report based on what the user selects on a form. Each individual criteria works but when I try to combine to pass multiple criteria it doesn't. I have read what I can find on...
2
by: ccwells | last post by:
Hi, I am a novice to VB, using Access 2003 on a XP-SP2 platform, and I have a small database for tracking expenses, and want to be able to filter my expense report by date. I currently have a...
13
by: masteraccess2008 | last post by:
I create in Access report based on user defined function(UDF) in SQL Server which returns table. CREATE FUNCTION MyFunc_VP (@VP varchar(12)) RETURNS TABLE AS RETURN (SELECT...... In Access,...
4
by: jimmcg | last post by:
how can i limit the records seen in an access report based on a subtotal amount?
2
by: fredmart | last post by:
Hi, I'm having problems finding a way to apply conditional formatting based on comparing the text contents of two fields in two different tables. What I'd like to do: I've got two tables that...
0
by: theaidencarl | last post by:
Hi everyone, I am currently working on an MS ACCESS database for one of our departments. I am currently stuck, wondering how I can make it less tedious and won't make the application crash due to...
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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.