A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

invalid vertical bar



 
 
Thread Tools Display Modes
  #1  
Old May 25th, 2010, 10:07 PM posted to microsoft.public.access
WuiChi
external usenet poster
 
Posts: 4
Default invalid vertical bar

I receive a message that "The expression you entered has invalid vertical
bars(|). I am just modifying an existing query when I get this error
message. I have tried to use commas instead but I get a different error.
You omitted an operand or operator, you entered an invalid character or
comma, or you entered text without surrounding it in quotation marks.
This is the query field that I am trying to modify.
Days Old: DateDiff("d"|[Corporate Received Date]|[Today's Date])

Thanks for your Help.
  #2  
Old May 25th, 2010, 10:10 PM posted to microsoft.public.access
Golfinray
external usenet poster
 
Posts: 1,597
Default invalid vertical bar

Try:
datediff("d",[firstfield],[secondfield])
--
Milton Purdy
ACCESS
State of Arkansas


"WuiChi" wrote:

I receive a message that "The expression you entered has invalid vertical
bars(|). I am just modifying an existing query when I get this error
message. I have tried to use commas instead but I get a different error.
You omitted an operand or operator, you entered an invalid character or
comma, or you entered text without surrounding it in quotation marks.
This is the query field that I am trying to modify.
Days Old: DateDiff("d"|[Corporate Received Date]|[Today's Date])

Thanks for your Help.

  #3  
Old May 26th, 2010, 02:48 PM posted to microsoft.public.access
John Spencer
external usenet poster
 
Posts: 7,815
Default invalid vertical bar

The most commons separator characters are commas (,) or semi-colons (.
Unless your computer is set to use some other character as the delimiter I
would try those.

John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County

golfinray wrote:
Try:
datediff("d",[firstfield],[secondfield])

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:02 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.