A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Forms Help



 
 
Thread Tools Display Modes
  #1  
Old September 9th, 2005, 12:41 AM
Steane
external usenet poster
 
Posts: n/a
Default Forms Help

Hi folks,
It's years since I've used database software and need some help please.
I have a field for job numbers (3 digits) and a second field for part
numbers (5-6 characters or digits). Input mask (second field) is set to
aaa-aaaaaa. The second field must also show the job number preceding the part
number. There can be no duplicates, but, there will be as far as the job
number is concerned as there may be 500 or more parts for the particular job
and some part numbers are duplicated for different jobs.
I have set up the second field to allow for the job number to precede the
part number. How (if it is possible)do I get the first field value to
transfer automatically to the part number field?
First field ***(job number)
Second field ***-aaaaaa(job number and part number)

Many thanks in advance,

Steane

  #2  
Old September 9th, 2005, 05:36 AM
Wayne Morgan
external usenet poster
 
Posts: n/a
Default

I would leave them as two separate fields. Just place them side by side on
the form. In a report, you could concatenate the two together in a single
textbox. To prevent duplicates, you can set a Unique Values index on both
fields simultaneously. This will let there be duplicates in either of the
fields, but when the fields are combined there could be no duplicates.

To set up this type of index, open the table in design view and go to
View|Indexes. In the Indexes dialog enter the name you want to use for the
index, the name of the first field in the index, and the sort order. Set
Unique to Yes. On the next row, leave the Index Name blank, enter the second
field name, and the sort order.

--
Wayne Morgan
MS Access MVP


"Steane" wrote in message
...
Hi folks,
It's years since I've used database software and need some help please.
I have a field for job numbers (3 digits) and a second field for part
numbers (5-6 characters or digits). Input mask (second field) is set to
aaa-aaaaaa. The second field must also show the job number preceding the
part
number. There can be no duplicates, but, there will be as far as the job
number is concerned as there may be 500 or more parts for the particular
job
and some part numbers are duplicated for different jobs.
I have set up the second field to allow for the job number to precede the
part number. How (if it is possible)do I get the first field value to
transfer automatically to the part number field?
First field ***(job number)
Second field ***-aaaaaa(job number and part number)

Many thanks in advance,

Steane



  #3  
Old September 12th, 2005, 06:54 AM
Steane
external usenet poster
 
Posts: n/a
Default

Thanks Wayne,
Thanks for the help Wayne. i'll give it a go.

Cheers,
Steane

"Wayne Morgan" wrote:

I would leave them as two separate fields. Just place them side by side on
the form. In a report, you could concatenate the two together in a single
textbox. To prevent duplicates, you can set a Unique Values index on both
fields simultaneously. This will let there be duplicates in either of the
fields, but when the fields are combined there could be no duplicates.

To set up this type of index, open the table in design view and go to
View|Indexes. In the Indexes dialog enter the name you want to use for the
index, the name of the first field in the index, and the sort order. Set
Unique to Yes. On the next row, leave the Index Name blank, enter the second
field name, and the sort order.

--
Wayne Morgan
MS Access MVP


"Steane" wrote in message
...
Hi folks,
It's years since I've used database software and need some help please.
I have a field for job numbers (3 digits) and a second field for part
numbers (5-6 characters or digits). Input mask (second field) is set to
aaa-aaaaaa. The second field must also show the job number preceding the
part
number. There can be no duplicates, but, there will be as far as the job
number is concerned as there may be 500 or more parts for the particular
job
and some part numbers are duplicated for different jobs.
I have set up the second field to allow for the job number to precede the
part number. How (if it is possible)do I get the first field value to
transfer automatically to the part number field?
First field ***(job number)
Second field ***-aaaaaa(job number and part number)

Many thanks in advance,

Steane




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with custom forms not displaying, (using outlook form ins Katherines01 Contacts 1 January 13th, 2005 02:25 PM
Forms Will Not Save accessquestion General Discussion 1 January 12th, 2005 08:28 AM
General question about naming conventions for forms Mister John Doe Using Forms 1 January 6th, 2005 01:31 AM
Menubar listing open forms? Harmannus Using Forms 0 December 23rd, 2004 12:33 AM
Advantages of unbound forms? Rob Rutherford Using Forms 2 December 9th, 2004 07:48 AM


All times are GMT +1. The time now is 08:39 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.