Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

First tentative steps with Visio - finding a shape's data based on the value of another shape

Status
Not open for further replies.

MrMode

Technical User
Aug 28, 2003
195
GB
I have connected an Access database to a Visio drawing.

I have never used or looked at Visio before, but as it is a Microsoft product, I imagine I can use VBA just like I do with MS Access and other Office applications.

I want to have 2 'shapes'.

I want Shape 2 data to be determined by the value of Shape 1 rather than selecting the row from a table in the Access database for each shape.

For example, if Shape 1 had a value of Orange, then Shape 2 needs to list all the Orange varieties in the database (Blood, Mandarin, Navel). In Access I would be able to create a control with a rowsource something like

Code:
SELECT tblFruits.id, tblY.FruitVariety 
FROM tblFruits
WHERE tblY.FruitType = " & Shape1.id

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top