Rabu, 28 Desember 2016

Re: [MS_AccessPros] Two Field AutoSequence

 

Roger Carlson has a small sample database that shows how to create your own autonumber at http://www.rogersaccesslibrary.com/forum/autonumberproblemmdb-beginner_topic395.html?SID=5182130zd5471bde6za1z6e1d85462327430556.


This might give you something to start on.


Duane

www.rogersaccesslibrary.com
Please consider donating $1 per sample downloaded, find out why here. This sample illustrates...




From: MS_Access_Professionals@yahoogroups.com <MS_Access_Professionals@yahoogroups.com> on behalf of david.pratt@outlook.com [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com>
Sent: Wednesday, December 28, 2016 11:06 PM
To: MS_Access_Professionals@yahoogroups.com
Subject: Re: [MS_AccessPros] Two Field AutoSequence
 


Well, that column labeled SEQUENCE should have been labeled ProjectNumber
Sorry


---In MS_Access_Professionals@yahoogroups.com, <david.pratt@...> wrote :

I have not created any records yet because I was hoping to have the auto sequencing working before I added any records.  However, they would be like the following:

ProjectID SampleGroupID Sequence ProjectDescription
1                1                        1              blah, blah, blah
2                1                        2              blah, blah, blah
3                1                        3              blah, blah, blah 
4                2                        1              blah blah
5                2                        2              blah blah
6                3                        1              blah blah
7                3                        2              blah blah
8                3                        3              blah blah
9                3                        4              blah blah  


---In MS_Access_Professionals@yahoogroups.com, <duanehookom@...> wrote :

David,

Can you provide some sample records? This will probably require some code in a form. 


Duane




From: MS_Access_Professionals@yahoogroups.com <MS_Access_Professionals@yahoogroups.com> on behalf of david.pratt@... [MS_Access_Professionals] <MS_Access_Professionals@yahoogroups.com>
Sent: Wednesday, December 28, 2016 6:12 PM
To: MS_Access_Professionals@yahoogroups.com
Subject: [MS_AccessPros] Two Field AutoSequence
 


I have a Projects table with fields of ProjectID, SampleGroupID and ProjectNumber (plus other fields inconsequential to this question).  The SampleGroupID and ProjectNumber constitute a two field, unique index.  I want the ProjectNumber field to be an autosequence field but I want the sequence numbers to start at ONE for each value in SampleGroupID.

Can you help me with this?






__._,_.___

Posted by: Duane Hookom <duanehookom@hotmail.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (5)

Have you tried the highest rated email app?
With 4.5 stars in iTunes, the Yahoo Mail app is the highest rated email app on the market. What are you waiting for? Now you can access all your inboxes (Gmail, Outlook, AOL and more) in one place. Never delete an email again with 1000GB of free cloud storage.


.

__,_._,___

Tidak ada komentar:

Posting Komentar