PDA

View Full Version : How to Skip Optional Parameters in Expressions?



prabhafriend
06-01-2010, 05:26 AM
How to achieve this in Jet SQL Expression:
Test:=FixDate(#5/31/2010#,,-1)
Like we do in VB and VBA procedures. Possible?

orange
06-01-2010, 08:05 AM
Is this what you're asking?
http://support.microsoft.com/kb/210179

prabhafriend
06-01-2010, 09:06 AM
That means We can't skip optional parameters in 'SQL Expressions'?

orange
06-01-2010, 09:09 AM
That means We can't skip optional parameters in 'SQL Expressions'?
I'm not sure what your original post was asking.
In Access functions there can be optional parameters - that's the link I pointed to.

I have no idea what FixDate(....) represents. It looks like a function.

What are you trying to do?
How do you relate FixDate to a SQL expression?

prabhafriend
06-02-2010, 10:41 PM
Orange If I Call the FixDate() in an SQL Expression then it becomes an SQL Statement. Let's Ask this way, How to skip optional parameters in JETSQL Statements? I building the Expression using the Expression box in the Query Builder. Not through VBA.