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  

Designing forms



 
 
Thread Tools Display Modes
  #1  
Old March 11th, 2010, 02:01 PM posted to microsoft.public.access.forms
meesh
external usenet poster
 
Posts: 9
Default Designing forms

I am designing a form to input both sides of connections between ports. We
have I have a table of Ports which has the key field as the ID numbers. On
this table of ports we have device ids as well so each of the IDs are unique.

On the form to input both sides of the ports, unfortunately it is going to
use the same table. However I am getting an error msg that you can change
the auto ID number, when i try to select one.

I'm EXTREMELY and utterly new to anything access.
  #2  
Old March 11th, 2010, 02:15 PM posted to microsoft.public.access.forms
Stefan Hoffmann
external usenet poster
 
Posts: 991
Default Designing forms

hi,

On 11.03.2010 15:01, Meesh wrote:
I am designing a form to input both sides of connections between ports. We
have I have a table of Ports which has the key field as the ID numbers. On
this table of ports we have device ids as well so each of the IDs are unique.

On the form to input both sides of the ports, unfortunately it is going to
use the same table. However I am getting an error msg that you can change
the auto ID number, when i try to select one.

I'm EXTREMELY and utterly new to anything access.

As you have not posted an accurate description of your table structure,
I have to guess.

Normally you would have three tables:

Device:
ID, AutoNumber, PrimaryKey, Not Null
DeviceName, Text(255), Unique Index, Not Null, Not Empty

Port:
ID, AutoNumber, PrimaryKey, Not Null
idDevice, Number(Long), Foreign Key to Device.ID, Not Null
PortName, Text(255), Not Null, Not Empty

PortAssignment:
ID, AutoNumber, PrimaryKey, Not Null
idPortA, Number(Long), Unique Index, Foreign Key to Port.ID, Not Null
idPortB, Number(Long), Unique Index, Foreign Key to Port.ID, Not Null

The unique index in the assignment table is necessary as each port can
only be used once.

Does this apply to your situation?


mfG
-- stefan --
 




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


All times are GMT +1. The time now is 06:09 PM.


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