![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi Access experts, I would like to retrieve data from Access using Excel VBA through ADO. This was successfully done in the past until a user-defined function was added to one of the fields in the Access query. On Access, the query can run successfully. On Excel, an error "Microsoft Access Database Engine -> Undefined function in expression" is returned. Has someone encountered similar problem before? Any workaround? I think using user-defined function in queries should be quite common because it is so useful. Thank you. |
#3
| |||
| |||
|
|
Hi Access experts, I would like to retrieve data from Access using Excel VBA through ADO. This was successfully done in the past until a user-defined function was added to one of the fields in the Access query. On Access, the query can run successfully. On Excel, an error "Microsoft Access Database Engine -> Undefined function in expression" is returned. Has someone encountered similar problem before? |
|
Any workaround? I think using user-defined function in queries should be quite common because it is so useful. Yes, but they can also lead to security problems so MS prevented their use |
#4
| |||
| |||
|
|
Lane wrote: Hi Access experts, I would like to retrieve data from Access using Excel VBA through ADO. This was successfully done in the past until a user-defined function was added to one of the fields in the Access query. On Access, the query can run successfully. On Excel, an error "Microsoft Access Database Engine -> Undefined function in expression" is returned. Has someone encountered similar problem before? Yes. Everyone who has tried. Any workaround? I think using user-defined function in queries should be quite common because it is so useful. Yes, but they can also lead to security problems so MS prevented their use from external apps.http://support.microsoft.com/default...us%3B294698&Pr... Note: the article seems to imply that a registry change can enable external apps to use udfs, but I've never seen anyone successfully do it. |
#5
| |||
| |||
|
|
Thank you for the replies. Now, I know that this is a limitation of Access. This is so inconvenient. If UDF could be used, a lot of work could be done at the Access side. On Jan 5, 2:55 am, "Bob Barrows" <reb01... (AT) NOyahooSPAM (DOT) com> wrote: Lane wrote: Hi Access experts, I would like to retrieve data from Access using Excel VBA through ADO. This was successfully done in the past until a user-defined function was added to one of the fields in the Access query. On Access, the query can run successfully. On Excel, an error "Microsoft Access Database Engine -> Undefined function in expression" is returned. Has someone encountered similar problem before? Yes. Everyone who has tried. Any workaround? I think using user-defined function in queries should be quite common because it is so useful. Yes, but they can also lead to security problems so MS prevented their use from external apps.http://support.microsoft.com/default...us%3B294698&Pr.. |
|
Note: the article seems to imply that a registry change can enable external apps to use udfs, but I've never seen anyone successfully do it. |
![]() |
| Thread Tools | |
| Display Modes | |
| |