473,396 Members | 2,147 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Revision Counts for Access Project

I have an Access Project as a front end for a SQL DB. I have a master
copy and distribute copies of it to my other users.

I would like to display a revision count on the first Main Form so that
when looking at the copies on other user's machines I can tell right
away if they are working with the latest version.

A Last revisied date would work too but it needs to be the last
revision or number of revisions to the front end itself.

Nov 13 '05 #1
13 1801
Maybe you could drop a local table in the front end containing the
version number. Read this value from the table onto the main form, or
on opening the database assign it to a global variable.

If you need help with the above, post back as someone may have a better
answer.

Dave

Nov 13 '05 #2
da********@lycos.co.uk wrote:
Maybe you could drop a local table in the front end containing the
version number. Read this value from the table onto the main form, or
on opening the database assign it to a global variable.


That is exactly what I do and I'm very happy with the setup. As is my
customer. We're in a design cycle and this provides just the extra
control we need!

--
Bas Cost Budde, Holland
http://www.heuveltop.nl/BasCB/msac_index.html
I prefer human mail above automated so in my address
replace the queue with a tea
Nov 13 '05 #3
How do I get the Revision Count into the local table? How does it get
updated?

Nov 13 '05 #4
Okay,

Before you go to release your next "front end" simply make a new table
maybe call it something like:

chkVersion - in this put one field, called whatever you want. (chk is
short for check).

Then stick in the version name/number.

The easiest (probably very slow but simple) way is then to place a
textbox onto your main form. Then use a dcount function to read the
value from your table.

There really are loads of different ways to do this, some of them a lot
better. But that should give you a simple start.

Does this help any?

When you send out your next front end, simply change the number in the
table you created above. That way the users will be able to see what
version the software is.

Dave

IndianaJonesWB wrote:
How do I get the Revision Count into the local table? How does it get updated?


Nov 13 '05 #5
IndianaJonesWB wrote:
How do I get the Revision Count into the local table? How does it get
updated?


I do it manually. If you want some automation, you have to *very
carefully* consider what you call a revision, and under what
circumstances you want such an update.

I tried and came up with so many afterthoughts and doubts that I didn't
bother, and wrote a small routine that updates the revision number, and
outputs the objects changed since the last revision to a log file.

--
Bas Cost Budde, Holland
http://www.heuveltop.nl/BasCB/msac_index.html
I prefer human mail above automated so in my address
replace the queue with a tea
Nov 13 '05 #6
I was looking for something more automatic.

Basically any change to the ADP configuration should trigger a change
to the Revision Count or Version or whatever. But the DateLastModified
changes whenever the database is opened, so that doesn't seem to work.

Nov 13 '05 #7
IndianaJonesWB wrote:
I was looking for something more automatic.

Basically any change to the ADP configuration should trigger a change
to the Revision Count or Version or whatever. But the DateLastModified
changes whenever the database is opened, so that doesn't seem to work.


Automatic... trigger... I recognize that.

What about the good old hidden form approach, the one that closes last
when you exit Access? That would be a moment to decide whether to note a
new revision.

The question, or rather decisions, about what exactly constitues a new
version still remains. Count of objects changed? Compile All disturbes
that. Number of controls, or lines of code? Quite intensive, and maybe
an inaccurate measure.

What do you think?

--
Bas Cost Budde, Holland
http://www.heuveltop.nl/BasCB/msac_index.html
I prefer human mail above automated so in my address
replace the queue with a tea
Nov 13 '05 #8
Doesn't it seem like Micorsoft would keep track of changes to the ADP
file's Configuration in one place? Like a Checksum or CRC for the
file.

Why would the DateLastModified change when the file is simply opened
and closed? In an ADP File there's no real data. It's just a front
end.

Apparently this isn't straightforward (unless I'm missing something
obvious).

I've done front ends for other things (like with WonderWare) and they
keep track of revisions. What a pain!

Nov 13 '05 #9
<da********@lycos.co.uk> wrote
Maybe you could drop a local table
in the front end containing the
version number. Read this value from
the table onto the main form, or
on opening the database assign it
to a global variable.
Access Projects (ADP/ADE) don't _have_ "local tables". That is one of
several reasons I use Access Databases (MDB/MDE) instead, whenever it is my
choice. For MDB/MDE, your suggestion is a good one.

You could put the "local" version number in a label on a Form, though.

Larry Linson
Microsoft Access MVP


If you need help with the above, post back as someone may have a better
answer.

Dave

Nov 13 '05 #10
"IndianaJonesWB" wrote
I was looking for something more automatic.


I cannot imagine not having manual control of "releases" and "versions"
unless it is for Source Control, in which case, I'd be using packaged Source
Control software, not writing my own scheme. And, because it has been a
long, long time since I worked on a project of sufficient scope to require
automated Source Control*, I can't make a specific recommendation -- other
than to say that the Developer Edition includes Visual Source Safe (but, if
memory serves, the Visual Studio Tools for Office 2003 System does not, so
you'd have to license VSS itself separately).

* that was in 1994, long before VSS, and they
used a third-party product that worked passably
well, but which ceased to be produced in the
Access 95/97 timeframe.

Larry Linson
Microsoft Access MVP
Nov 13 '05 #11
Manual control of the version number seems to be my only alternative.

For now I have a label on my main form with a number I have to remember
to update whenever I change the front end.
I'm kind of afraid I'll forget but I guess it's the best way to do it.

Nov 13 '05 #12
"IndianaJonesWB" wrote
Manual control of the version number
seems to be my only alternative. For
now I have a label on my main form
with a number I have to remember to
update whenever I change the front end.
I'm kind of afraid I'll forget but I guess
it's the best way to do it.


Because we had a small team, we alternated "release commander" duties on a
project with which I was associated for five years or so. We were releasing
/ publishing new releases and versions to the users, not tracking
development with release/version, but not once in those five years did any
of us forget to update the version and release, and the corresponding latest
available and mandatory version and release in the server database.

But, each of us used the same checklist... it started with 12 separate
steps, and grew over time to 18 or 19, for the things we did to ready and
publish the new release. Of course, one of those steps dealt with updating
the version in the front end (in our case, it was an MDB, and that
information was in a local table) and another with updating the two
version/release indicators in the server database. A few more details on our
approach are in an article at http://accdevel.tripod.com.

We did NOT use these versions to track development changes. We defined the
development work to be done on each release, assigned tasks to individuals,
and tracked the tasks. As you might guess, we had separate development and
production databases... when the work for a release was complete, we backed
everything up, and "promoted" the tested development copy to production
status. Because we had a significant chain of backups, we could easily
revert to an earlier version/release if something went wrong.

Larry Linson
Microsoft Access MVP

Larry Linson
Microsoft Access MVP
Nov 13 '05 #13
Just though I'd give an update to this string.

What I did was use some code to put a version ID on the main form. I
update this Version ID Manually.
Then I created a table on SQL Server with each Version and a
description of what I did for that version.

When the main form opens up it compares the local value of my custom
Version to the lates version in my table. If they don't match the user
is prompted to get an update.

The user is also warned if he attempts to open the database from the
master copy of the front end. (This allows me to post a new version
without worrying about sharing violations).

It really works pretty good.

Heres the code in my main form:

Private Sub Form_Open(Cancel As Integer)
Dim fs, f
Dim MyVersion As String
Dim rst As New ADODB.Recordset
'On Error GoTo Form_Open_Error
MyVersion = "01-07-2005 1.8"

Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFile(CurrentProject.FullName)

If f.Path = <Master File Name> Then _
MsgBox "You've opened this Database from the I:\xxx\xxx directory"
& vbNewLine & _
"Please Close this database and copy 'xxx.adp' to your
desktop!"

rst.Open "select top 1 * from dbo.rnc_db_revs where
isnull(revnumber,'')<>'' order by revid desc",
CurrentProject.Connection,
adOpenForwardOnly, adLockReadOnly
If rst!RevNumber <> MyVersion Then _
MsgBox "Check your Revision Level!!" & vbNewLine & _
"Latest Rev is: " & rst!RevNumber & vbNewLine & _
"This Rev is: " & MyVersion & vbNewLine & _
"To Update Close this database;" & vbNewLine & _
"Copy 'xxx.adp' from the I:\xxx\xxx Directory to your
desktop" & vbNewLine & _
"Open 'xxx.adp' from your desktop"
rst.Close

Exit Sub
Form_Open_Error:
MsgBox "Error Connecting" & vbNewLine & "Call R&C Database
Administrator"
End Sub

Nov 13 '05 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Bishara Gabriel | last post by:
Second Submitted Revision - Final. Considerable additions to the "Project Objective" and "Our Approach" sections. Unless you advise me to send in a third final version (even after my telling...
1
by: Burghew | last post by:
Hi All, I have 2 fields called document & Revision which contains the titles for the documents to be stored in the databse it gets filled up as the user enters them and the revison numbers...
4
by: Burghew | last post by:
Hi All, I have 2 fields called document & Revision which contains the titles for the documents to be stored in the databse it gets filled up as the user enters them and the revison numbers...
2
by: Mark | last post by:
In the AssemblyInfo.cs page of a ASP.NET project, there is a defaulted property of: It's my understanding that this indicates a Major Version of 1, a Minor Version of 0, and a Build and...
4
by: Pietro | last post by:
Thanks for the last answer, but now how can i restart the count of the Build and Revision numbers of a dll in VS.Net. Thanks Pietro
4
by: johnk | last post by:
I have a table of items, with revision numbers. I need to extract the items with highest revision number. The items may be listed several times and I don't know what the highest revision number...
84
by: pamelafluente | last post by:
With reference to the CDMA (computer.databases.ms-access) newsgroup "charter", as posted on http://www.mvps.org/access/netiquette.htm, Mike Noel has honored my just-created Forum of posting "a...
0
by: ZRexRider | last post by:
I was asked to set the revision number of my project so it shows up in Windows File properties (when you right click a file and select properties and select the summary tab). It shows up down in...
3
by: Bill Hutchison | last post by:
I have a query that returns different results (3508 rows for snapshot, 6288 for dynaset) and that is the only thing I change to get the different results. When I try to make a table from the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.