Hi All,
Development stage of setting up a new solution here.
I CONSTANTLY have to unhook the relationships I've built via the
Relationships tab on Tools, then change the Required element of a few
controls on a table from yes to no, make some other adjustments to the
attributes of various controls, then copy just the structure (so that the
primary key resets to 1) to another name, delete the first table, rename the
new table to what it should be, import some data (from another system I'm
converting from), run some queries that find duplicates, missing data,
deletes some garbage, etc. I then have to redo the Required elements I
need, rehook the relationships and all the other stuff I had to cancel just
to get the data over. Now, don't get me wrong...I'm amazed I can even DO
all of this without coding anything. But...
The terrible part is, my boss is going to eventually want to take this
existing mdb and make one identical too it but with only certain of the
tables populated with some data and defaults and things, leaving the rest of
the tables empty (ready for new data), and make a new mdb with it. NO WAY
can I allow HIM to have access to all this stuff. Talk about screwing
things up...
Can I do any of this in code rather than manually through all these
wizards/screens, etc? And if I can do it by code, can anyone point me
towards some examples I can study?
Thanks,
ron 5 1967
Sorry, forgot to mention: Access2000/WinXP
"Ron" <ro************ ********@verizo n.netwrote in message
news:_OnIh.124$ Bi2.109@trnddc0 1...
Hi All,
Development stage of setting up a new solution here.
I CONSTANTLY have to unhook the relationships I've built via the
Relationships tab on Tools, then change the Required element of a few
controls on a table from yes to no, make some other adjustments to the
attributes of various controls, then copy just the structure (so that the
primary key resets to 1) to another name, delete the first table, rename
the new table to what it should be, import some data (from another system
I'm converting from), run some queries that find duplicates, missing data,
deletes some garbage, etc. I then have to redo the Required elements I
need, rehook the relationships and all the other stuff I had to cancel
just to get the data over. Now, don't get me wrong...I'm amazed I can
even DO all of this without coding anything. But...
The terrible part is, my boss is going to eventually want to take this
existing mdb and make one identical too it but with only certain of the
tables populated with some data and defaults and things, leaving the rest
of the tables empty (ready for new data), and make a new mdb with it. NO
WAY can I allow HIM to have access to all this stuff. Talk about screwing
things up...
Can I do any of this in code rather than manually through all these
wizards/screens, etc? And if I can do it by code, can anyone point me
towards some examples I can study?
Thanks,
ron
In general, you cannot merely modify the properties in code if the relation
exists. You can programmaticall y delete a relation, set properties,and
create the relation again, but it is rarely worth the trouble since it is a
one-off operation.
During the design phase, you might want to leave creating the relations
until you have created the bulk of the tables. That helps avoid having to
create and destroy relations constantly. (Of course, this assumes you do
have a complete written specification of what the database needs to do, so
that you can create all the tables and verify that every design aspect is
met, and then create the relations.)
If you want an example of looping through the Relations and deleting them,
see: http://allenbrowne.com/DelRel.html
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"Ron" <ro************ ********@verizo n.netwrote in message
news:_OnIh.124$ Bi2.109@trnddc0 1...
Hi All,
Development stage of setting up a new solution here.
I CONSTANTLY have to unhook the relationships I've built via the
Relationships tab on Tools, then change the Required element of a few
controls on a table from yes to no, make some other adjustments to the
attributes of various controls, then copy just the structure (so that the
primary key resets to 1) to another name, delete the first table, rename
the new table to what it should be, import some data (from another system
I'm converting from), run some queries that find duplicates, missing data,
deletes some garbage, etc. I then have to redo the Required elements I
need, rehook the relationships and all the other stuff I had to cancel
just to get the data over. Now, don't get me wrong...I'm amazed I can
even DO all of this without coding anything. But...
The terrible part is, my boss is going to eventually want to take this
existing mdb and make one identical too it but with only certain of the
tables populated with some data and defaults and things, leaving the rest
of the tables empty (ready for new data), and make a new mdb with it. NO
WAY can I allow HIM to have access to all this stuff. Talk about screwing
things up...
Can I do any of this in code rather than manually through all these
wizards/screens, etc? And if I can do it by code, can anyone point me
towards some examples I can study?
Thanks,
ron
Second paragraph of my post suggests a reason I may not be doing this just
one time. I may have to give over a system of creating a partially blank
database (derived from a combination of existing tables/blank tables) so
they can begin record keeping for separate offices as they open.
But, anyway...
I went to your website and checked out some utilities you have. Thanks for
putting all that together for everyone. I did try the Relationship Report
with extended field info under Application/Utilities but it won't compile.
Yes, I have MS DAO 3.6 library referenced. Get an error message that says
it's a compile error: Method or data member not found and it sits on the "If
fld.Required then" part of DescribeFieldSu b. Works down thru all of them,
and then my report (if I run it uncompiled) has my data files shown, with
lines to all the related tables, but no control names, just "Unbound" for
all the control names. Anyone give me a heads up as to why?
ron
"Allen Browne" <Al*********@Se eSig.Invalidwro te in message
news:45******** **************@ per-qv1-newsreader-01.iinet.net.au ...
In general, you cannot merely modify the properties in code if the
relation exists. You can programmaticall y delete a relation, set
properties,and create the relation again, but it is rarely worth the
trouble since it is a one-off operation.
During the design phase, you might want to leave creating the relations
until you have created the bulk of the tables. That helps avoid having to
create and destroy relations constantly. (Of course, this assumes you do
have a complete written specification of what the database needs to do, so
that you can create all the tables and verify that every design aspect is
met, and then create the relations.)
If you want an example of looping through the Relations and deleting them,
see: http://allenbrowne.com/DelRel.html
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"Ron" <ro************ ********@verizo n.netwrote in message
news:_OnIh.124$ Bi2.109@trnddc0 1...
>Hi All,
Development stage of setting up a new solution here.
I CONSTANTLY have to unhook the relationships I've built via the Relationship s tab on Tools, then change the Required element of a few controls on a table from yes to no, make some other adjustments to the attributes of various controls, then copy just the structure (so that the primary key resets to 1) to another name, delete the first table, rename the new table to what it should be, import some data (from another system I'm converting from), run some queries that find duplicates, missing data, deletes some garbage, etc. I then have to redo the Required elements I need, rehook the relationships and all the other stuff I had to cancel just to get the data over. Now, don't get me wrong...I'm amazed I can even DO all of this without coding anything. But...
The terrible part is, my boss is going to eventually want to take this existing mdb and make one identical too it but with only certain of the tables populated with some data and defaults and things, leaving the rest of the tables empty (ready for new data), and make a new mdb with it. NO WAY can I allow HIM to have access to all this stuff. Talk about screwing things up...
Can I do any of this in code rather than manually through all these wizards/screens, etc? And if I can do it by code, can anyone point me towards some examples I can study?
Thanks, ron
Try changing the declaration line:
Private Function DescribeFieldSu b(tdf As TableDef, fld As Field, ...
to:
Private Function DescribeFieldSu b(tdf As TableDef, fld As DAO.Field, ...
That disambiguation should solve the problem if the issue is that you have
another library that exposes a Field object.
Let me know if that is the solution, and I will change the utility so no one
else gets caught with it.
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"Ron" <ro************ ********@verizo n.netwrote in message
news:T1WIh.234$ Eg4.199@trnddc0 3...
[snip]
>
I went to your website and checked out some utilities you have. Thanks
for putting all that together for everyone. I did try the Relationship
Report with extended field info under Application/Utilities but it won't
compile. Yes, I have MS DAO 3.6 library referenced. Get an error message
that says it's a compile error: Method or data member not found and it
sits on the "If fld.Required then" part of DescribeFieldSu b. Works down
thru all of them, and then my report (if I run it uncompiled) has my data
files shown, with lines to all the related tables, but no control names,
just "Unbound" for all the control names. Anyone give me a heads up as to
why?
ron
That did the trick. Amazing what 3 little letters and a dot will
accomplish, eh?
Thanks--that'll definitely make things easier to compare databases.
"Allen Browne" <Al*********@Se eSig.Invalidwro te in message
news:45******** **************@ per-qv1-newsreader-01.iinet.net.au ...
Try changing the declaration line:
Private Function DescribeFieldSu b(tdf As TableDef, fld As Field, ...
to:
Private Function DescribeFieldSu b(tdf As TableDef, fld As DAO.Field,
...
That disambiguation should solve the problem if the issue is that you have
another library that exposes a Field object.
Let me know if that is the solution, and I will change the utility so no
one else gets caught with it.
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"Ron" <ro************ ********@verizo n.netwrote in message
news:T1WIh.234$ Eg4.199@trnddc0 3...
[snip]
>> I went to your website and checked out some utilities you have. Thanks for putting all that together for everyone. I did try the Relationship Report with extended field info under Application/Utilities but it won't compile. Yes, I have MS DAO 3.6 library referenced. Get an error message that says it's a compile error: Method or data member not found and it sits on the "If fld.Required then" part of DescribeFieldSu b. Works down thru all of them, and then my report (if I run it uncompiled) has my data files shown, with lines to all the related tables, but no control names, just "Unbound" for all the control names. Anyone give me a heads up as to why?
ron
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Kunle Odutola |
last post by:
I have a database that tracks players for children's sports clubs. I have
included representative DDL for this database at the end of this post.
A single instance of this database supports multiple clubs. I would like to
add support for letting each club define and store custom information about
arbitrary entities. Basically, allows the...
|
by: Mariusz Jedrzejewski |
last post by:
Hi,
I'll be very grateful if somebody can explain me why my Opera 7.23
(runing under linux) doesn't show me inner tables. Using below code I
can see only "inner table 1". There is no problem with other browsers
(I checked it under Konqueror).
Thank you in advance for your help.
Regards.
/Mariusz
<HTML>
|
by: Christoph Sticksel |
last post by:
Hi,
I'm having problems with attaching two tables stored in an SQL Server
2000 to an Access 97 database. It worked well for all other tables
except those two.
This is what I did: Choose the data source from the ODBC dialog, choose
the database on SQL Server login, select all tables in the SQL Server
database. All tables were attached...
|
by: dskillingstad |
last post by:
I've been struggling with this problem for some time and have tried
multiple solutions with no luck.
Let me start with, I'm a novice at Access and I'm not looking for
someones help to design my database,just help in getting me pointed in
the right direction.
I have a database with 8 tables, which from what I have read, cannot be
linked...
|
by: bubbles |
last post by:
Using Access 2003 front-end, with SQL Server 2005 backend.
I need to make the front-end application automatically refresh the
linked
SQL Server tables.
New tables will be added dynamically in the future, so the front-end
application
must have a way to keep up with this (instead of manually linking
them).
| |
by: shriil |
last post by:
Hi
I have this database that calculates and stores the incentive amount
earned by employees of a particular department. Each record is
entered
by entering the Date, Shift (morn, eve, or night) and the 'employee
name'. There is another table which assigns an ID to the Shifts, i.e.
1,2 and 3 for morn, eve & night shifts respectively. From...
|
by: Richard |
last post by:
Hi folks, thanks for taking the time to read this (and hopefully point
our where I'm going wrong).
The scenario:
I have a local Access2007 database which links in several read only
mySql tables via ODBC.
The problem:
|
by: hrdavidson |
last post by:
Here is a brief summary of what I am trying to achieve:
My database is huge (many tables over 50k records) and I would like to spin off a select set of data. I want to spin off 2008 data, and in 3 months spin off 2009 data -- adding it to the 2008 spin off.
The primary keys in my tables are incremental autonumber. Now, the spin off of 2008...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| | |