By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,991 Members | 1,888 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,991 IT Pros & Developers. It's quick & easy.

Case insensitive and date ranges

P: 22
Hi,

Two questions.

Firstly how do I make a primary key case insensitive to allow username: John and john for example to be entered into it. My database is just a single table so would it matter if I define username as a primary key? I dont think it would.

Secondly, I would like to work out the difference between two date ranges. If i send out a request to a supplier for an item, and I fill in a date sent and date recieved field for each supplier. Could I work out the average amount of time in days it would take to recieve each particular item ?? What function would i need to use, and could it work this out using a date field ?

thank you


Scott
Funds and security management
Mar 15 '07 #1
Share this Question
Share on Google+
2 Replies


MMcCarthy
Expert Mod 10K+
P: 14,534
Firstly how do I make a primary key case insensitive to allow username: John and john for example to be entered into it. My database is just a single table so would it matter if I define username as a primary key? I dont think it would.
Scott the primary key should be a number (autonumber) field for many reasons to do with indexing and sorting. Also in your case the text field will give rise to different case problems.
Mar 17 '07 #2

missinglinq
Expert 2.5K+
P: 3,532
Access is, by default, case insensitive! JOHN = john = John = jOhN
Mar 17 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.