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 Powerpoint, Publisher and Visio » Visio
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Can Visio connect to Acces db query with expression field?



 
 
Thread Tools Display Modes
  #1  
Old August 11th, 2004, 03:50 PM
isaksp00
external usenet poster
 
Posts: n/a
Default Can Visio connect to Acces db query with expression field?

I am trying to link a shpae's property (in this case,
it's text) to a field returned from an Access 2002
query. The shape should look up a record based on the
values in two fields, and return the value in a third
field that is actually an expression in the query. This
expression calls an internal (inside the Access DB) VBA
function that outputs a string that is the concatenation
of from 0 to 3 or 4 related text fields.

When I try to use the wizard, or edit the shapesheet
User.ODBCConnection formula directly to specify the query
name and fields, I get an ODBC error:
"ODBC Error: 37000
[Microsoft][ODBC Microsoft Access Driver] Undefined
function 'ConcatTechnologies' in expression."
The undefined function identified is in fact the name of
the function in the query's expression. This is the
ODBCConnection formula:
="ODBCDataSource=MS Access
Database|ODBCQualifier=C:\Documents and Settings\isaksp00
\My Documents\Architecture\App
Portfolio\Portfolio|ODBCTable=qryAllTechnologiesby AppbyCom
ponent|2|Source ID=Prop.SourceID1|Component
ID=Prop.ComponentTechnology|1|AllTechs=Shape.Text= 0|"

The query field named 'AllTechs' is the one that contains
the function call.
Can Visio in fact do this, or is it a limitation (that
you can not return data from query fields containing user
defined functions)?

  #2  
Old August 11th, 2004, 04:59 PM
Al Edlund
external usenet poster
 
Posts: n/a
Default Can Visio connect to Acces db query with expression field?

in my experience odbc doesn't like querying things where there is an
executable on the other side. I've often ended up moving the code into visio
and doing the work there. It's an ODBC error, not visio.
Al
"isaksp00" wrote in message
...
I am trying to link a shpae's property (in this case,
it's text) to a field returned from an Access 2002
query. The shape should look up a record based on the
values in two fields, and return the value in a third
field that is actually an expression in the query. This
expression calls an internal (inside the Access DB) VBA
function that outputs a string that is the concatenation
of from 0 to 3 or 4 related text fields.

When I try to use the wizard, or edit the shapesheet
User.ODBCConnection formula directly to specify the query
name and fields, I get an ODBC error:
"ODBC Error: 37000
[Microsoft][ODBC Microsoft Access Driver] Undefined
function 'ConcatTechnologies' in expression."
The undefined function identified is in fact the name of
the function in the query's expression. This is the
ODBCConnection formula:
="ODBCDataSource=MS Access
Database|ODBCQualifier=C:\Documents and Settings\isaksp00
\My Documents\Architecture\App
Portfolio\Portfolio|ODBCTable=qryAllTechnologiesby AppbyCom
ponent|2|Source ID=Prop.SourceID1|Component
ID=Prop.ComponentTechnology|1|AllTechs=Shape.Text= 0|"

The query field named 'AllTechs' is the one that contains
the function call.
Can Visio in fact do this, or is it a limitation (that
you can not return data from query fields containing user
defined functions)?



  #3  
Old August 11th, 2004, 05:51 PM
Peter I
external usenet poster
 
Posts: n/a
Default Can Visio connect to Acces db query with expression field?

Thanks, Al. I later tried doing a query from Excel, using MS Query, and got
much the same result - so it is broader than Visio. I would have thought
that, code or no code, accessing a query would return the data viewed in the
query just as if it were a physical table - seems not to be so. I don't want
to have to learn the Visio VBA object model, so I'll see if there are any
other solutions...

"Al Edlund" wrote:

in my experience odbc doesn't like querying things where there is an
executable on the other side. I've often ended up moving the code into visio
and doing the work there. It's an ODBC error, not visio.
Al


 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Access vs. Excel query w/blank field dutty Running & Setting Up Queries 1 July 28th, 2004 01:10 PM
expression built sting / Parsing text field Andre General Discussion 2 June 25th, 2004 04:39 PM
Null Query Field Brook Running & Setting Up Queries 2 June 25th, 2004 01:22 PM
Updating Two Related Fields in One Query SANJAY SHAH \(MICROBRAIN Computers Pvt. Ltd.\) Running & Setting Up Queries 3 June 9th, 2004 12:23 PM


All times are GMT +1. The time now is 06:57 AM.


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