M
M@
Hey Visio Developers,
I am seeking some advice on a Data Integrity issue I am currently presented
with whilst developing a Visio Solution.
BACKGROUND:
I am currently developing a Visio solution which links a Visio Document to
an Access Database.
The language of choice is VB 6.0, using ADO & SQL for database access. The
Visio version is 2002 on Windows XP Pro.
When a user places shapes on a page they are able to 'Right Mouse' the Shape
and enter information relating to that shape via a VB form. This data is
stored in the Access database. When a user connects two shapes this
connection information is stored in the database. When a shape is deleted,
the database is updated to reflect the deleted shape. When a connection is
deleted the database is updated to reflect this deleted connection.
PROBLEM:
If Visio crashes, or the document is NOT saved when Visio Exits, data in the
Visio Drawing may become different to the data in the database.
EXAMPLE:
A user opens the Visio Document & makes some changes. Shapes are added,
their details entered into
the database. Connections are made & these are recorded in the database.
Now, the PC CRASHES, causing the user to reboot.
The user opens Visio to find the shapes & connections are no longer in the
drawing.
If the database is examined these shapes & their details will be recorded,
as are the connections made by the user prior to the crash. As the database
is updated in real-time (once the user clicks OK to close the form) this
situation occurs.
HELP / SOLUTION:
What would your suggestions be with regards to this situation?
How would I mantain data integerity in face of the above events?
Many Thanks
M@
P.S. Would love to hear as many suggestions a possiable.
I am seeking some advice on a Data Integrity issue I am currently presented
with whilst developing a Visio Solution.
BACKGROUND:
I am currently developing a Visio solution which links a Visio Document to
an Access Database.
The language of choice is VB 6.0, using ADO & SQL for database access. The
Visio version is 2002 on Windows XP Pro.
When a user places shapes on a page they are able to 'Right Mouse' the Shape
and enter information relating to that shape via a VB form. This data is
stored in the Access database. When a user connects two shapes this
connection information is stored in the database. When a shape is deleted,
the database is updated to reflect the deleted shape. When a connection is
deleted the database is updated to reflect this deleted connection.
PROBLEM:
If Visio crashes, or the document is NOT saved when Visio Exits, data in the
Visio Drawing may become different to the data in the database.
EXAMPLE:
A user opens the Visio Document & makes some changes. Shapes are added,
their details entered into
the database. Connections are made & these are recorded in the database.
Now, the PC CRASHES, causing the user to reboot.
The user opens Visio to find the shapes & connections are no longer in the
drawing.
If the database is examined these shapes & their details will be recorded,
as are the connections made by the user prior to the crash. As the database
is updated in real-time (once the user clicks OK to close the form) this
situation occurs.
HELP / SOLUTION:
What would your suggestions be with regards to this situation?
How would I mantain data integerity in face of the above events?
Many Thanks
M@
P.S. Would love to hear as many suggestions a possiable.