Connecting Tech Pros Worldwide Forums | Help | Site Map

Table relationships lost when ran splitting wizard. WHY?

Ed
Guest
 
Posts: n/a
#1: Nov 12 '05
I am running Access 2002 and just ran the built in Access wizard for
splitting a database into a back end (with tables) and front end (with
queries, forms, modules, etc.).

After running the wizard, I opened the table relationship view and noticed
that all the relationships are missing. Is this supposed to happen? If so,
why? I've noticed that queries are behaving strangely now, seemingly
because the relationships are not established.

Am I supposed to go into the back end database and reestablish the
relationships? Or, am I supposed to do that in the front end database.

This behavior seems odd. Is this an Access 2002 bug?

Thank you for your help!

Ed




Tony Toews
Guest
 
Posts: n/a
#2: Nov 12 '05

re: Table relationships lost when ran splitting wizard. WHY?


"Ed" <anonymous@discussions.com> wrote:
[color=blue]
>I am running Access 2002 and just ran the built in Access wizard for
>splitting a database into a back end (with tables) and front end (with
>queries, forms, modules, etc.).
>
>After running the wizard, I opened the table relationship view and noticed
>that all the relationships are missing. Is this supposed to happen? If so,
>why?[/color]

It shouldn't but then I've never used the splitting wizard. I'd go into the BE and
see if the relationship view is still there. You may need to click on the Show All
button on the tool bar.

If the layout is missing then use the appropriate sysrels tool from
www.trigeminal.com to copy the relationships window layout.

And if the relationships are not indeed in the backend you can still use the sysrels
utility to copy the relationships window layout. You'll have to drag and drop the
relationships yourself but that'll be less work.
[color=blue]
>I've noticed that queries are behaving strangely now, seemingly
>because the relationships are not established.[/color]

Tell us more.
[color=blue]
>Am I supposed to go into the back end database and reestablish the
>relationships? Or, am I supposed to do that in the front end database.[/color]

No, relationships are always created in the MDB in which the tables reside.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Salad
Guest
 
Posts: n/a
#3: Nov 12 '05

re: Table relationships lost when ran splitting wizard. WHY?


Tony Toews wrote:
[color=blue]
> "Ed" <anonymous@discussions.com> wrote:
>[color=green]
> >I am running Access 2002 and just ran the built in Access wizard for
> >splitting a database into a back end (with tables) and front end (with
> >queries, forms, modules, etc.).
> >
> >After running the wizard, I opened the table relationship view and noticed
> >that all the relationships are missing. Is this supposed to happen? If so,
> >why?[/color]
>
> It shouldn't but then I've never used the splitting wizard. I'd go into the BE and
> see if the relationship view is still there. You may need to click on the Show All
> button on the tool bar.
>
> If the layout is missing then use the appropriate sysrels tool from
> www.trigeminal.com to copy the relationships window layout.
>
> And if the relationships are not indeed in the backend you can still use the sysrels
> utility to copy the relationships window layout. You'll have to drag and drop the
> relationships yourself but that'll be less work.[/color]

Tony, in one app I did I set my relationships in I visited the relationships window
later on and the window had myriads of tables in it, lines crisscrossing all over the
place. It looked like a spaghetti western. Is that normal as you define an application
and build and expand it?


Tony Toews
Guest
 
Posts: n/a
#4: Nov 12 '05

re: Table relationships lost when ran splitting wizard. WHY?


Salad <oil@vinegar.com> wrote:
[color=blue]
>Tony, in one app I did I set my relationships in I visited the relationships window
>later on and the window had myriads of tables in it, lines crisscrossing all over the
>place. It looked like a spaghetti western. Is that normal as you define an application
>and build and expand it?[/color]

No. Or rather some of mine do indeed look like spaghetti but then I
designed the layouts that way. <smile> One of mine prints on a 48"
plotter and takes three feet of paper.

I have had that happen when I import the BE into a new BE. The
tables are placed on a grid and the lines are running all over the
place.

But this is where the sysrels utility comes in. It will copy the old
relationships window layout.

Tony



--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Stephen Lebans
Guest
 
Posts: n/a
#5: Nov 12 '05

re: Table relationships lost when ran splitting wizard. WHY?


Just as an add-in to this thread there is a utility on my site that
allows you to save/restore multiple views of the Relationship window.
http://www.lebans.com/saverelationshipview.htm
NEW - Jan 21/2004 A2KSave-RestoreRelationshipWindow.zip is an MDB
containing functions to Save and Restore the Relationships View Window.
Allows an unlimited number of different Relationship Window Views to be
saved.

Here is the Access97 version:A97Save-RestoreRelationshipWindow.zip


--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.


"Tony Toews" <ttoews@telusplanet.net> wrote in message
news:c4a810hao8nfvunnbmfntg5lv122cal4mt@4ax.com...[color=blue]
> Salad <oil@vinegar.com> wrote:
>[color=green]
> >Tony, in one app I did I set my relationships in I visited the[/color][/color]
relationships window[color=blue][color=green]
> >later on and the window had myriads of tables in it, lines[/color][/color]
crisscrossing all over the[color=blue][color=green]
> >place. It looked like a spaghetti western. Is that normal as you[/color][/color]
define an application[color=blue][color=green]
> >and build and expand it?[/color]
>
> No. Or rather some of mine do indeed look like spaghetti but then I
> designed the layouts that way. <smile> One of mine prints on a 48"
> plotter and takes three feet of paper.
>
> I have had that happen when I import the BE into a new BE. The
> tables are placed on a grid and the lines are running all over the
> place.
>
> But this is where the sysrels utility comes in. It will copy the old
> relationships window layout.
>
> Tony
>
>
>
> --
> Tony Toews, Microsoft Access MVP
> Please respond only in the newsgroups so that others can
> read the entire thread of messages.
> Microsoft Access Links, Hints, Tips & Accounting Systems at
> http://www.granite.ab.ca/accsmstr.htm[/color]

Michael \(michka\) Kaplan [MS]
Guest
 
Posts: n/a
#6: Nov 12 '05

re: Table relationships lost when ran splitting wizard. WHY?


"Stephen Lebans" <ForEmailGotoMy.WebSite.-WWWdotlebansdotcom@linvalid.com>
wrote in message news:AAWQb.73411$IF6.1865635@ursa-nb00s0.nbnet.nb.ca...[color=blue]
> Just as an add-in to this thread there is a utility on my site that
> allows you to save/restore multiple views of the Relationship window.
> http://www.lebans.com/saverelationshipview.htm
> NEW - Jan 21/2004 A2KSave-RestoreRelationshipWindow.zip is an MDB
> containing functions to Save and Restore the Relationships View Window.
> Allows an unlimited number of different Relationship Window Views to be
> saved.
>
> Here is the Access97 version:A97Save-RestoreRelationshipWindow.zip
>[/color]

Very clever! Though you could have saved a bunch of time using the built in
Access methods for storing different views by using the SysRel utility I
wrote. :-)


--
MichKa [MS]
NLS Collation/Locale/Keyboard Development
Globalization Infrastructure and Font Technologies

This posting is provided "AS IS" with
no warranties, and confers no rights.





Steve Jorgensen
Guest
 
Posts: n/a
#7: Nov 12 '05

re: Table relationships lost when ran splitting wizard. WHY?


On Mon, 26 Jan 2004 15:42:47 -0800, "Michael \(michka\) Kaplan [MS]"
<michkap@online.microsoft.com> wrote:
[color=blue]
>"Stephen Lebans" <ForEmailGotoMy.WebSite.-WWWdotlebansdotcom@linvalid.com>
>wrote in message news:AAWQb.73411$IF6.1865635@ursa-nb00s0.nbnet.nb.ca...[color=green]
>> Just as an add-in to this thread there is a utility on my site that
>> allows you to save/restore multiple views of the Relationship window.
>> http://www.lebans.com/saverelationshipview.htm
>> NEW - Jan 21/2004 A2KSave-RestoreRelationshipWindow.zip is an MDB
>> containing functions to Save and Restore the Relationships View Window.
>> Allows an unlimited number of different Relationship Window Views to be
>> saved.
>>
>> Here is the Access97 version:A97Save-RestoreRelationshipWindow.zip
>>[/color]
>
>Very clever! Though you could have saved a bunch of time using the built in
>Access methods for storing different views by using the SysRel utility I
>wrote. :-)[/color]

Perhaps, I'm not understanding correctly, but I thought the SysRel utility
saved an internal Blob that represents the relationships. Is there any way to
know it's safe to restore those after changes have been made to the tables and
relationships since the time the Blob was saved? That had been my concern.
Stephen Lebans
Guest
 
Posts: n/a
#8: Nov 12 '05

re: Table relationships lost when ran splitting wizard. WHY?


I actually wanted to go that route Michael but you have not published
the Source code!<grin>
The code only took an hour or so and I enjoyed the mental exercise.
:-)
--

Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.


"Michael (michka) Kaplan [MS]" <michkap@online.microsoft.com> wrote in
message news:4015a5ea$1@news.microsoft.com...[color=blue]
> "Stephen Lebans"[/color]
<ForEmailGotoMy.WebSite.-WWWdotlebansdotcom@linvalid.com>[color=blue]
> wrote in message[/color]
news:AAWQb.73411$IF6.1865635@ursa-nb00s0.nbnet.nb.ca...[color=blue][color=green]
> > Just as an add-in to this thread there is a utility on my site that
> > allows you to save/restore multiple views of the Relationship[/color][/color]
window.[color=blue][color=green]
> > http://www.lebans.com/saverelationshipview.htm
> > NEW - Jan 21/2004 A2KSave-RestoreRelationshipWindow.zip is an MDB
> > containing functions to Save and Restore the Relationships View[/color][/color]
Window.[color=blue][color=green]
> > Allows an unlimited number of different Relationship Window Views to[/color][/color]
be[color=blue][color=green]
> > saved.
> >
> > Here is the Access97 version:A97Save-RestoreRelationshipWindow.zip
> >[/color]
>
> Very clever! Though you could have saved a bunch of time using the[/color]
built in[color=blue]
> Access methods for storing different views by using the SysRel utility[/color]
I[color=blue]
> wrote. :-)
>
>
> --
> MichKa [MS]
> NLS Collation/Locale/Keyboard Development
> Globalization Infrastructure and Font Technologies
>
> This posting is provided "AS IS" with
> no warranties, and confers no rights.
>
>
>
>
>[/color]

Stephen Lebans
Guest
 
Posts: n/a
#9: Nov 12 '05

re: Table relationships lost when ran splitting wizard. WHY?


Michael I finally took a look at the BLOB data in the MSysObjects table.
I was able to decipher the indvidual window coordinates from the data.
Without voiding any NDA you are under can you tell me if the location of
the window coordinates are fixed/static across all versions of Access?
Or do I need to continue to decipher the header for this BLOB?
For anyone interested the relevant BLOB is in the MSysObjects table. The
desired row has a NAME field = "ADMIN".

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.


"Stephen Lebans"
<ForEmailGotoMy.WebSite.-WWWdotlebansdotcom@linvalid.com> wrote in
message news:2UiRb.76887$IF6.1905512@ursa-nb00s0.nbnet.nb.ca...[color=blue]
> I actually wanted to go that route Michael but you have not published
> the Source code!<grin>
> The code only took an hour or so and I enjoyed the mental exercise.
> :-)
> --
>
> Stephen Lebans
> http://www.lebans.com
> Access Code, Tips and Tricks
> Please respond only to the newsgroups so everyone can benefit.
>
>
> "Michael (michka) Kaplan [MS]" <michkap@online.microsoft.com> wrote in
> message news:4015a5ea$1@news.microsoft.com...[color=green]
> > "Stephen Lebans"[/color]
> <ForEmailGotoMy.WebSite.-WWWdotlebansdotcom@linvalid.com>[color=green]
> > wrote in message[/color]
> news:AAWQb.73411$IF6.1865635@ursa-nb00s0.nbnet.nb.ca...[color=green][color=darkred]
> > > Just as an add-in to this thread there is a utility on my site[/color][/color][/color]
that[color=blue][color=green][color=darkred]
> > > allows you to save/restore multiple views of the Relationship[/color][/color]
> window.[color=green][color=darkred]
> > > http://www.lebans.com/saverelationshipview.htm
> > > NEW - Jan 21/2004 A2KSave-RestoreRelationshipWindow.zip is an[/color][/color][/color]
MDB[color=blue][color=green][color=darkred]
> > > containing functions to Save and Restore the Relationships View[/color][/color]
> Window.[color=green][color=darkred]
> > > Allows an unlimited number of different Relationship Window Views[/color][/color][/color]
to[color=blue]
> be[color=green][color=darkred]
> > > saved.
> > >
> > > Here is the Access97 version:A97Save-RestoreRelationshipWindow.zip
> > >[/color]
> >
> > Very clever! Though you could have saved a bunch of time using the[/color]
> built in[color=green]
> > Access methods for storing different views by using the SysRel[/color][/color]
utility[color=blue]
> I[color=green]
> > wrote. :-)
> >
> >
> > --
> > MichKa [MS]
> > NLS Collation/Locale/Keyboard Development
> > Globalization Infrastructure and Font Technologies
> >
> > This posting is provided "AS IS" with
> > no warranties, and confers no rights.
> >
> >
> >
> >
> >[/color]
>[/color]

Michael \(michka\) Kaplan [MS]
Guest
 
Posts: n/a
#10: Nov 12 '05

re: Table relationships lost when ran splitting wizard. WHY?


"Steve Jorgensen" <nospam@nospam.nospam> wrote...
[color=blue]
> Perhaps, I'm not understanding correctly, but I thought the SysRel utility
> saved an internal Blob that represents the relationships. Is there any[/color]
way to[color=blue]
> know it's safe to restore those after changes have been made to the tables[/color]
and[color=blue]
> relationships since the time the Blob was saved? That had been my[/color]
concern.

It is perfectly safe, and this is what happens any time you modify schema
outside of Access (using ADO or DAO, etc.) and then later open the window in
Access -- it properly discards items that are no longer present.


--
MichKa [MS]
NLS Collation/Locale/Keyboard Development
Globalization Infrastructure and Font Technologies

This posting is provided "AS IS" with
no warranties, and confers no rights.



Michael \(michka\) Kaplan [MS]
Guest
 
Posts: n/a
#11: Nov 12 '05

re: Table relationships lost when ran splitting wizard. WHY?


"Stephen Lebans" <ForEmailGotoMy.WebSite.-WWWdotlebansdotcom@linvalid.com>
wrote...
[color=blue]
> I actually wanted to go that route Michael but you have not published
> the Source code!<grin>[/color]

Ah, I am not allowed to do that. The decipher code was easy enough, but the
writing to the system table is not something I am allowed to release as
source (though in the past I have licensed DLL versions for easy calling
from other tools <grin>),


--
MichKa [MS]
NLS Collation/Locale/Keyboard Development
Globalization Infrastructure and Font Technologies

This posting is provided "AS IS" with
no warranties, and confers no rights.



Michael \(michka\) Kaplan [MS]
Guest
 
Posts: n/a
#12: Nov 12 '05

re: Table relationships lost when ran splitting wizard. WHY?


"Stephen Lebans" <ForEmailGotoMy.WebSite.-WWWdotlebansdotcom@linvalid.com>
wrote...
[color=blue]
> Michael I finally took a look at the BLOB data in the MSysObjects table.
> I was able to decipher the indvidual window coordinates from the data.
> Without voiding any NDA you are under can you tell me if the location of
> the window coordinates are fixed/static across all versions of Access?
> Or do I need to continue to decipher the header for this BLOB?[/color]

Well, its no NDA violation since I dod not know if they ever plan to change
this. Of course, if they do then they have a wizard to update (the Print
Relationships wizard), so they may well keep it stable.
[color=blue]
> For anyone interested the relevant BLOB is in the MSysObjects table. The
> desired row has a NAME field = "ADMIN".[/color]

Actually, it is whatever user name is the person looking at the
relationships window (thats why SysRel lets you save it under any name at
all).


--
MichKa [MS]
NLS Collation/Locale/Keyboard Development
Globalization Infrastructure and Font Technologies

This posting is provided "AS IS" with
no warranties, and confers no rights.



Stephen Lebans
Guest
 
Posts: n/a
#13: Nov 12 '05

re: Table relationships lost when ran splitting wizard. WHY?


Thanks for the info Michael.
:-)

--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.


"Michael (michka) Kaplan [MS]" <michkap@online.microsoft.com> wrote in
message news:4017d1ba$1@news.microsoft.com...[color=blue]
> "Stephen Lebans"[/color]
<ForEmailGotoMy.WebSite.-WWWdotlebansdotcom@linvalid.com>[color=blue]
> wrote...
>[color=green]
> > Michael I finally took a look at the BLOB data in the MSysObjects[/color][/color]
table.[color=blue][color=green]
> > I was able to decipher the indvidual window coordinates from the[/color][/color]
data.[color=blue][color=green]
> > Without voiding any NDA you are under can you tell me if the[/color][/color]
location of[color=blue][color=green]
> > the window coordinates are fixed/static across all versions of[/color][/color]
Access?[color=blue][color=green]
> > Or do I need to continue to decipher the header for this BLOB?[/color]
>
> Well, its no NDA violation since I dod not know if they ever plan to[/color]
change[color=blue]
> this. Of course, if they do then they have a wizard to update (the[/color]
Print[color=blue]
> Relationships wizard), so they may well keep it stable.
>[color=green]
> > For anyone interested the relevant BLOB is in the MSysObjects table.[/color][/color]
The[color=blue][color=green]
> > desired row has a NAME field = "ADMIN".[/color]
>
> Actually, it is whatever user name is the person looking at the
> relationships window (thats why SysRel lets you save it under any name[/color]
at[color=blue]
> all).
>
>
> --
> MichKa [MS]
> NLS Collation/Locale/Keyboard Development
> Globalization Infrastructure and Font Technologies
>
> This posting is provided "AS IS" with
> no warranties, and confers no rights.
>
>
>[/color]

Stephen Lebans
Guest
 
Posts: n/a
#14: Nov 12 '05

re: Table relationships lost when ran splitting wizard. WHY?


Well since I am not able to write to the system tables I will have to
keep my current method and use DoCmd to Save the current RelationShip
View to the system table.
Thanks Michael.
:-)
--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.


"Michael (michka) Kaplan [MS]" <michkap@online.microsoft.com> wrote in
message news:4017d139@news.microsoft.com...[color=blue]
> "Stephen Lebans"[/color]
<ForEmailGotoMy.WebSite.-WWWdotlebansdotcom@linvalid.com>[color=blue]
> wrote...
>[color=green]
> > I actually wanted to go that route Michael but you have not[/color][/color]
published[color=blue][color=green]
> > the Source code!<grin>[/color]
>
> Ah, I am not allowed to do that. The decipher code was easy enough,[/color]
but the[color=blue]
> writing to the system table is not something I am allowed to release[/color]
as[color=blue]
> source (though in the past I have licensed DLL versions for easy[/color]
calling[color=blue]
> from other tools <grin>),
>
>
> --
> MichKa [MS]
> NLS Collation/Locale/Keyboard Development
> Globalization Infrastructure and Font Technologies
>
> This posting is provided "AS IS" with
> no warranties, and confers no rights.
>
>
>[/color]

Tony Toews
Guest
 
Posts: n/a
#15: Nov 12 '05

re: Table relationships lost when ran splitting wizard. WHY?


"Michael \(michka\) Kaplan [MS]" <michkap@online.microsoft.com> wrote:
[color=blue][color=green]
>> For anyone interested the relevant BLOB is in the MSysObjects table. The
>> desired row has a NAME field = "ADMIN".[/color]
>
>Actually, it is whatever user name is the person looking at the
>relationships window (thats why SysRel lets you save it under any name at
>all).[/color]

Ah, yes, I recall a tip from someone, somewhere who stated that if you wanted a
different relationships view to logon to Access using a different userid.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony Toews
Guest
 
Posts: n/a
#16: Nov 12 '05

re: Table relationships lost when ran splitting wizard. WHY?


"Stephen Lebans" <ForEmailGotoMy.WebSite.-WWWdotlebansdotcom@linvalid.com> wrote:
[color=blue]
>Well since I am not able to write to the system tables I will have to
>keep my current method and use DoCmd to Save the current RelationShip
>View to the system table.[/color]

Well, yeah, but there's got to be some way of updating the system tables. After all
Michael can do it inside VB in his sysrels utility.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Michael \(michka\) Kaplan [MS]
Guest
 
Posts: n/a
#17: Nov 12 '05

re: Table relationships lost when ran splitting wizard. WHY?


Or you can use my utility to save different views....


--
MichKa [MS]
NLS Collation/Locale/Keyboard Development
Globalization Infrastructure and Font Technologies

This posting is provided "AS IS" with
no warranties, and confers no rights.



"Tony Toews" <ttoews@telusplanet.net> wrote in message
news:o92g10pfd9duglfb83dvp0rbf1hg1ddtms@4ax.com...[color=blue]
> "Michael \(michka\) Kaplan [MS]" <michkap@online.microsoft.com> wrote:
>[color=green][color=darkred]
> >> For anyone interested the relevant BLOB is in the MSysObjects table.[/color][/color][/color]
The[color=blue][color=green][color=darkred]
> >> desired row has a NAME field = "ADMIN".[/color]
> >
> >Actually, it is whatever user name is the person looking at the
> >relationships window (thats why SysRel lets you save it under any name at
> >all).[/color]
>
> Ah, yes, I recall a tip from someone, somewhere who stated that if you[/color]
wanted a[color=blue]
> different relationships view to logon to Access using a different userid.
>
> Tony
> --
> Tony Toews, Microsoft Access MVP
> Please respond only in the newsgroups so that others can
> read the entire thread of messages.
> Microsoft Access Links, Hints, Tips & Accounting Systems at
> http://www.granite.ab.ca/accsmstr.htm[/color]


Michael \(michka\) Kaplan [MS]
Guest
 
Posts: n/a
#18: Nov 12 '05

re: Table relationships lost when ran splitting wizard. WHY?


"Tony Toews" <ttoews@telusplanet.net> wrote:
[color=blue]
> Well, yeah, but there's got to be some way of updating the system tables.[/color]
After all[color=blue]
> Michael can do it inside VB in his sysrels utility.[/color]

Yes, if you call Jet directly then there are all kinds of ways around rules.
In this case, the table in question is not secured using Jet security, so it
is easy enough to write data (for tables that have actual Jet security
permissions-based restrictions, this method would not be helpful).


--
MichKa [MS]
NLS Collation/Locale/Keyboard Development
Globalization Infrastructure and Font Technologies

This posting is provided "AS IS" with
no warranties, and confers no rights.



Michael \(michka\) Kaplan [MS]
Guest
 
Posts: n/a
#19: Nov 12 '05

re: Table relationships lost when ran splitting wizard. WHY?


"Stephen Lebans" <ForEmailGotoMy.WebSite.-WWWdotlebansdotcom@linvalid.com>
wrote...
[color=blue]
> Well since I am not able to write to the system tables I will have to
> keep my current method and use DoCmd to Save the current RelationShip
> View to the system table.[/color]

Well, one could always call this other tool. Not everything has to be done
in the database to be considered helpful. :-)


--
MichKa [MS]
NLS Collation/Locale/Keyboard Development
Globalization Infrastructure and Font Technologies

This posting is provided "AS IS" with
no warranties, and confers no rights.



Stephen Lebans
Guest
 
Posts: n/a
#20: Nov 12 '05

re: Table relationships lost when ran splitting wizard. WHY?


Steve I had a chance tonight to publish a more complete Relationship
WIndow Layout tool. I was able to do add the functionality to copy the
Relationship Window Layout from an external MDB as I finally took the
time to decode the Layout BLOB. It was pretty straightforward. The BLOB
structure is documented below.
http://www.lebans.com/saverelationshipview.htm

NEW - Feb 04/2004
http://www.lebans.com/DownloadFiles/...-RelationshipW
indowLayoutver6.zip is an MDB containing functions to:

1) To allow the saving of the layout of the Relationship window to a
table.
2) To allow the restoration of the layout of the Relationship Window
from a table.
3) To allow the saving/restoration of multiple Relationship Window
views.
4) To allow the importing of the layout of the Relationship Window from
an external MDB.


Private Type RECTL
Left As Long
Top As Long
Right As Long
Bottom As Long
End Type


' First 68 Bytes are the Header
' This is followed by (NumWindows + 1) * 284 bytes per record
' Last padding record seems to be padding
Private Type RelBlob
Sig As Long
AAAs(1 To AAAlength) As Byte
RelWinX1 As Long
RelWinY1 As Long
RelWinX2 As Long
RelWinY2 As Long
Blank As Long
FFFs(1 To FFFlength) As Byte
ClientRectX As Long
ClientRectY As Long
Pad(1 To Padding) As Byte
NumWindows As Long
End Type

Private Type RelWindow
RelWinX1 As Long
RelWinY1 As Long
RelWinX2 As Long
RelWinY2 As Long
Junk As Long
WinName As String * NameLengthMax
Junk1 As Long
WinNameMaster As String * NameLengthMax
Junk2 As Long
End Type
--

HTH
Stephen Lebans
http://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.


"Steve Jorgensen" <nospam@nospam.nospam> wrote in message
news:lddb10l7e5g7kim71mt82lrllftsmeo3db@4ax.com...[color=blue]
> On Mon, 26 Jan 2004 15:42:47 -0800, "Michael \(michka\) Kaplan [MS]"
> <michkap@online.microsoft.com> wrote:
>[color=green]
> >"Stephen Lebans"[/color][/color]
<ForEmailGotoMy.WebSite.-WWWdotlebansdotcom@linvalid.com>[color=blue][color=green]
> >wrote in message[/color][/color]
news:AAWQb.73411$IF6.1865635@ursa-nb00s0.nbnet.nb.ca...[color=blue][color=green][color=darkred]
> >> Just as an add-in to this thread there is a utility on my site that
> >> allows you to save/restore multiple views of the Relationship[/color][/color][/color]
window.[color=blue][color=green][color=darkred]
> >> http://www.lebans.com/saverelationshipview.htm
> >> NEW - Jan 21/2004 A2KSave-RestoreRelationshipWindow.zip is an MDB
> >> containing functions to Save and Restore the Relationships View[/color][/color][/color]
Window.[color=blue][color=green][color=darkred]
> >> Allows an unlimited number of different Relationship Window Views[/color][/color][/color]
to be[color=blue][color=green][color=darkred]
> >> saved.
> >>
> >> Here is the Access97 version:A97Save-RestoreRelationshipWindow.zip
> >>[/color]
> >
> >Very clever! Though you could have saved a bunch of time using the[/color][/color]
built in[color=blue][color=green]
> >Access methods for storing different views by using the SysRel[/color][/color]
utility I[color=blue][color=green]
> >wrote. :-)[/color]
>
> Perhaps, I'm not understanding correctly, but I thought the SysRel[/color]
utility[color=blue]
> saved an internal Blob that represents the relationships. Is there[/color]
any way to[color=blue]
> know it's safe to restore those after changes have been made to the[/color]
tables and[color=blue]
> relationships since the time the Blob was saved? That had been my[/color]
concern.

Michael \(michka\) Kaplan [MS]
Guest
 
Posts: n/a
#21: Nov 12 '05

re: Table relationships lost when ran splitting wizard. WHY?


I still think saving it in the actual Access format would be cooler. And
there is no shame in having an external library, you know!


--
MichKa [MS]
NLS Collation/Locale/Keyboard Development
Globalization Infrastructure and Font Technologies

This posting is provided "AS IS" with
no warranties, and confers no rights.



"Stephen Lebans" <ForEmailGotoMy.WebSite.-WWWdotlebansdotcom@linvalid.com>
wrote in message news:%dHTb.86074$IF6.2187474@ursa-nb00s0.nbnet.nb.ca...[color=blue]
> Steve I had a chance tonight to publish a more complete Relationship
> WIndow Layout tool. I was able to do add the functionality to copy the
> Relationship Window Layout from an external MDB as I finally took the
> time to decode the Layout BLOB. It was pretty straightforward. The BLOB
> structure is documented below.
> http://www.lebans.com/saverelationshipview.htm
>
> NEW - Feb 04/2004
> http://www.lebans.com/DownloadFiles/...-RelationshipW
> indowLayoutver6.zip is an MDB containing functions to:
>
> 1) To allow the saving of the layout of the Relationship window to a
> table.
> 2) To allow the restoration of the layout of the Relationship Window
> from a table.
> 3) To allow the saving/restoration of multiple Relationship Window
> views.
> 4) To allow the importing of the layout of the Relationship Window from
> an external MDB.
>
>
> Private Type RECTL
> Left As Long
> Top As Long
> Right As Long
> Bottom As Long
> End Type
>
>
> ' First 68 Bytes are the Header
> ' This is followed by (NumWindows + 1) * 284 bytes per record
> ' Last padding record seems to be padding
> Private Type RelBlob
> Sig As Long
> AAAs(1 To AAAlength) As Byte
> RelWinX1 As Long
> RelWinY1 As Long
> RelWinX2 As Long
> RelWinY2 As Long
> Blank As Long
> FFFs(1 To FFFlength) As Byte
> ClientRectX As Long
> ClientRectY As Long
> Pad(1 To Padding) As Byte
> NumWindows As Long
> End Type
>
> Private Type RelWindow
> RelWinX1 As Long
> RelWinY1 As Long
> RelWinX2 As Long
> RelWinY2 As Long
> Junk As Long
> WinName As String * NameLengthMax
> Junk1 As Long
> WinNameMaster As String * NameLengthMax
> Junk2 As Long
> End Type
> --
>
> HTH
> Stephen Lebans
> http://www.lebans.com
> Access Code, Tips and Tricks
> Please respond only to the newsgroups so everyone can benefit.
>
>
> "Steve Jorgensen" <nospam@nospam.nospam> wrote in message
> news:lddb10l7e5g7kim71mt82lrllftsmeo3db@4ax.com...[color=green]
> > On Mon, 26 Jan 2004 15:42:47 -0800, "Michael \(michka\) Kaplan [MS]"
> > <michkap@online.microsoft.com> wrote:
> >[color=darkred]
> > >"Stephen Lebans"[/color][/color]
> <ForEmailGotoMy.WebSite.-WWWdotlebansdotcom@linvalid.com>[color=green][color=darkred]
> > >wrote in message[/color][/color]
> news:AAWQb.73411$IF6.1865635@ursa-nb00s0.nbnet.nb.ca...[color=green][color=darkred]
> > >> Just as an add-in to this thread there is a utility on my site that
> > >> allows you to save/restore multiple views of the Relationship[/color][/color]
> window.[color=green][color=darkred]
> > >> http://www.lebans.com/saverelationshipview.htm
> > >> NEW - Jan 21/2004 A2KSave-RestoreRelationshipWindow.zip is an MDB
> > >> containing functions to Save and Restore the Relationships View[/color][/color]
> Window.[color=green][color=darkred]
> > >> Allows an unlimited number of different Relationship Window Views[/color][/color]
> to be[color=green][color=darkred]
> > >> saved.
> > >>
> > >> Here is the Access97 version:A97Save-RestoreRelationshipWindow.zip
> > >>
> > >
> > >Very clever! Though you could have saved a bunch of time using the[/color][/color]
> built in[color=green][color=darkred]
> > >Access methods for storing different views by using the SysRel[/color][/color]
> utility I[color=green][color=darkred]
> > >wrote. :-)[/color]
> >
> > Perhaps, I'm not understanding correctly, but I thought the SysRel[/color]
> utility[color=green]
> > saved an internal Blob that represents the relationships. Is there[/color]
> any way to[color=green]
> > know it's safe to restore those after changes have been made to the[/color]
> tables and[color=green]
> > relationships since the time the Blob was saved? That had been my[/color]
> concern.
>[/color]


Closed Thread