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  

Visio and Access databases



 
 
Thread Tools Display Modes
  #1  
Old June 11th, 2009, 02:56 AM posted to microsoft.public.visio.general
MaxPower1234
external usenet poster
 
Posts: 1
Default Visio and Access databases

I was able to successfully export some custom shape properties into an Access
database. I can edit those properties in Access then apply them to the shapes
through Visio. But in order to do this, I have to right click on the shape,
click "Select Database Record", broswe to the database location, right click
on the shape and click on "Select Database Record" again, then choose which
record I want to apply to the shape. Is there a better way of doing this?
Maybe have it update automatically when I open the layout with Visio?

I am using Visio Pro 2003 SP3.
  #2  
Old June 11th, 2009, 12:16 PM posted to microsoft.public.visio.general
AlEdlund
external usenet poster
 
Posts: 468
Default Visio and Access databases

One of the best tools in visio is the "create macro" function. It will often
allow users to automate repeating processes by copying the on-screen steps
into a macro, which can then be called either from the toolbar or other vba
code. Here's an example of a macro to do database refresh for each page in
the document

Public Sub DoRefresh()
Dim myPage As Visio.Page
Dim myDoc As Visio.Document

Set myDoc = Visio.Application.ActiveDocument

For Each myPage In myDoc.Pages
RUNADDON ("DBRS")
' MsgBox CStr(myPage.Name)
Next myPage

End Sub

al


"MaxPower1234" wrote in message
...
I was able to successfully export some custom shape properties into an
Access
database. I can edit those properties in Access then apply them to the
shapes
through Visio. But in order to do this, I have to right click on the
shape,
click "Select Database Record", broswe to the database location, right
click
on the shape and click on "Select Database Record" again, then choose
which
record I want to apply to the shape. Is there a better way of doing this?
Maybe have it update automatically when I open the layout with Visio?

I am using Visio Pro 2003 SP3.


 




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


All times are GMT +1. The time now is 03:47 PM.


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