E
Evi
Although the article below claims that Access 2000 boasts the REPLACE
function, it isn't recognized when I try to use it in queries (pity this
wasn't made clear either in the article or in Access 2000 help). However, if
I use it in a module, as per the example , it is.
http://support.microsoft.com/kb/210465
2 Questions. Acc2K help, which doesn't seem to work properly anyway, is
peppered with things labelled as Worksheet Functions and the Help entry
seems to be suggesting that you are using them in Excel - I have not found
an indication to date that they are available for use in Access and whenever
I've tried to use them in queries, I get the Unrecognized Function error,
which led me to believe that whoever had written Acc2K help had an empty
bottle of vodka by his side at the time.
More on that here: http://eis.bris.ac.uk/~ccmjs/access2000.htm
So are they actually available in modules? Or do I have some reference
missing which would allow me to use them in a query.
2. If they are available only in modules, it wouldn't be that hard to use
these things by writing my own functions, except for a couple of things.
Access's own functions allow 2 things, ignoring nulls without error messages
and Optional variables
If I do my own version of Replace
Public Function ReplaceF(ByVal MyString, MyFind, MyReplace, MyStart,
MyCount) As String
ReplaceF=Replace(MyString,MyFind,MyReplace,MyStart, MyCount)
End Function
How do I indicate that the last 2 variables, MyStart and MyCount are
optional, as they are in the real Replace function?
How can I ensure that date and number functions don't end up as Strings
because I haven't defined them as date or number, yet will allow me to use
them when there might be a null value, just like many of Access's own
functions?
Evi
function, it isn't recognized when I try to use it in queries (pity this
wasn't made clear either in the article or in Access 2000 help). However, if
I use it in a module, as per the example , it is.
http://support.microsoft.com/kb/210465
2 Questions. Acc2K help, which doesn't seem to work properly anyway, is
peppered with things labelled as Worksheet Functions and the Help entry
seems to be suggesting that you are using them in Excel - I have not found
an indication to date that they are available for use in Access and whenever
I've tried to use them in queries, I get the Unrecognized Function error,
which led me to believe that whoever had written Acc2K help had an empty
bottle of vodka by his side at the time.
More on that here: http://eis.bris.ac.uk/~ccmjs/access2000.htm
So are they actually available in modules? Or do I have some reference
missing which would allow me to use them in a query.
2. If they are available only in modules, it wouldn't be that hard to use
these things by writing my own functions, except for a couple of things.
Access's own functions allow 2 things, ignoring nulls without error messages
and Optional variables
If I do my own version of Replace
Public Function ReplaceF(ByVal MyString, MyFind, MyReplace, MyStart,
MyCount) As String
ReplaceF=Replace(MyString,MyFind,MyReplace,MyStart, MyCount)
End Function
How do I indicate that the last 2 variables, MyStart and MyCount are
optional, as they are in the real Replace function?
How can I ensure that date and number functions don't end up as Strings
because I haven't defined them as date or number, yet will allow me to use
them when there might be a null value, just like many of Access's own
functions?
Evi