[mso] Re: Access 2k :VSMail mx3

  • From: James LaBorde <jlaborde@xxxxxxxxx>
  • To: "'mso@xxxxxxxxxxxxx'" <mso@xxxxxxxxxxxxx>
  • Date: Fri, 5 Sep 2003 13:18:18 -0700

Very odd.  You may end up having to list the item number as 0

-----Original Message-----
From: Pam [mailto:ltf01@xxxxxxxxxx]
Sent: Friday, September 05, 2003 1:14 PM
To: mso@xxxxxxxxxxxxx
Subject: [mso] Re: Access 2k :VSMail mx3


It's telling me that index or primary key cannot contain a null value.
I have only the 2 fields set as the primary keys, catNum is set to be
required, itemNum is not.


Pam

-----Original Message-----
From: mso-bounce@xxxxxxxxxxxxx [mailto:mso-bounce@xxxxxxxxxxxxx]On
Behalf Of James LaBorde
Sent: Friday, September 05, 2003 1:11 PM
To: 'mso@xxxxxxxxxxxxx'
Subject: [mso] Re: Access 2k :VSMail mx2


What is the error you are getting?

It should be requiring you to have a unique catnum if you have no itemnum.

James

-----Original Message-----
From: Pam [mailto:ltf01@xxxxxxxxxx]
Sent: Friday, September 05, 2003 9:06 AM
To: mso@xxxxxxxxxxxxx
Subject: [mso] Re: Access 2k :VSMail mx2


Hi James,
I set  up a new table as you suggested, did the primary key as you
described, but even though I told it Yes on Required for CatNum and No on
Required for the ItemNum it still won't let me save a record if there is
nothing in the ItemNum field.  Any suggestions?

Pam

-----Original Message-----
From: mso-bounce@xxxxxxxxxxxxx [mailto:mso-bounce@xxxxxxxxxxxxx]On
Behalf Of James LaBorde
Sent: Thursday, August 28, 2003 3:04 PM
To: 'mso@xxxxxxxxxxxxx'
Subject: [mso] Re: Access 2k :VSMail mx3


Pam,

You can create a dual primary field.  Just create a new table for now to do
this.  Create the table, using CatNum, and ItemNum rather than the pound
sign.  (The pound sign can cause other problems down the road.)  In the
design view highlight both these fields and click on the Primary Key icon.
You will have a dual primary key enabled.  Under CatNum, change the Required
field to Yes.

With this configuration, you will be allowed to have any number of the same
category you want and any number of the same item you want, as long as both
are not exact duplicates of another set.

In order to check for existing duplicates, do an Append query from your
existing table to your new table.  When you execute it, you will get an
error message telling you that ## of records won't be added due to key
violations.  Click Ok to this.  You will now have a new table with no
duplicate entries.

If you need any help with this just holler.

James La Borde
*************************************************************

*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, send an email to 
mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes)
in the subject line.

Or, visit the group's homepage and use the dropdown menu.  This will also
allow you to change your email settings to digest or vacation (no mail).
//www.freelists.org/webpage/mso

To be able to use the files section for sharing files with the group, send a
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation
with instructions.  Once you are a member of the files group, you can go
here to upload/download files:
http://www.smartgroups.com/vault/msofiles
*************************************************************
*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or 
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, send an email to 
mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes) in 
the subject line.

Or, visit the group's homepage and use the dropdown menu.  This will also allow 
you to change your email settings to digest or vacation (no mail).
//www.freelists.org/webpage/mso

To be able to use the files section for sharing files with the group, send a 
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with 
instructions.  Once you are a member of the files group, you can go here to 
upload/download files:
http://www.smartgroups.com/vault/msofiles
*************************************************************

Other related posts: