473,513 Members | 3,006 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to show today's date on Report?

111 New Member
I have a report on which I want to show today's date. The first option I tried was to put a textbox and write =Date() as a control source property. (my form is bound so it was forcing me to select something from dropdown , although I overtyped that function)
second option I tried to do it from Insert menu.
Both the times I am getting this error.
"The function you entered can't be used in this expression"
You may have used a doevents blabla
You may have used an aggregate function, such as count....bla bla
Can anybody tell why is it doing this?

Thanks
Jul 21 '09 #1
4 14764
ChipR
1,287 Recognized Expert Top Contributor
=Date() is perfectly fine as a control source property. Something else is causing the error. Make sure the report works without the text box, then recreate it and make sure it is unbound. Maybe also check that you aren't using something else named Date.
Jul 21 '09 #2
AccessBeetle
111 New Member
Report runs without the textbox perfectly fine. Is there any & sign required?
I mean something like = & Date () & anything like this? If so, what is the correct sign?
I can't think of any other thing. Can you give me hint on what that "Something else" is causing the error?
Thanks
Jul 21 '09 #3
ChipR
1,287 Recognized Expert Top Contributor
Does the Date() function work for you elsewhere? The only other indication I could find of why this would cause an error would be a problem with DAO references.
Jul 21 '09 #4
ajalwaysus
266 Recognized Expert Contributor
Also just for the sake of argument, could you try "= Now()"? I know that "=Date()" has given me a problem or 2 before, but i never could figure out why. Could be nothing.

-AJ
Jul 22 '09 #5

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

Similar topics

1
3981
by: Jimi Ffondu | last post by:
Hello all - apologies for putting such a banal request for help on a forum as distinguished as this, but I'm in trouble and didn't know where else to turn... It appears I've volunteered to re-write our University's project management database... anyway... I'm an idiot... I want to be able to click a button in a form and generate a report...
7
1865
by: simonmarkjones | last post by:
Hi, I have a report i would like created based upon a date the user types in. I have a query which in the criteria section of my date field i have put . The report is created fine when a valid (a date that is in the table) is entered. However, is it possible to display a message to the user when the date is not found and then not display...
2
2239
by: carl.barrett | last post by:
Hi, I'm back with the same question as I still can't get it to display my data the way I want it to. The table lists information about a perpetrator involved with an anti social behaviour order. The table contains personal information about the individual as well as (here is where the letter dates comes in:) e.g.
1
15185
by: wdw1970 | last post by:
Hello Everyone! This is my first post to the forum. --------------------------------------------------------------------------------------------- In my database, I have a continuous subform called: "subCallBack". I setup my query, so that it only shows records that do contain a date value, in the "lsrCallBackDate" column. Any...
4
5927
by: crane.jake | last post by:
Hi, I'm trying to find the following information from the table found bellow. Year_Sales - # of sales that have occurred this year Year_Income - SUM(amount) Month_Sales - # of sales that have occurred this month Month_Income - SUM(amount) Today_Sales -- # of sales that have occurred today Today_Icome - SUM(amount)
5
2686
by: M Skabialka | last post by:
I am creating my first Visual Studio project, an inventory database. I have created a form and used written directions to add data from a table to the form using table adapters, data sets, etc. I imported a table from an Access database which has some date fields. Many of these dates have never been filled in, so are nulls. If I look...
6
2163
by: nairda | last post by:
Hi all, I'm making a sales report form that linked to my sales database (sales.mdb). I want to show the sales report in a MSHFlexgrid sorted by a period of time. I have these 2 combo boxes (Each contains number from 1 to 31). Combo1 is for the beginning date of the report period I wanted to show. Combo2 is for the end date of the report. So, if...
5
1601
by: pukhton | last post by:
I want to print a report in Access, where I can show the name on top the report when user enter name. please take a look. I have this so far in the header of the report =Forms!RunReport!Pharmacist.Value
2
3590
by: NicholasSerpentine | last post by:
Hi folks....I have been checking out this group and have found help and solutions to everything I have needed up to this point. I have created a report based on a Query to show me certain activity during a specific period. When I run the report a prompt asks me for the start date and end date of the period. How can I have the report show...
0
7178
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7563
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7125
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7543
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5102
isladogs
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3252
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3239
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1612
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 we have to send another system
1
813
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.