Case Sensitive parameter query

RhondaStockton

Board Regular
Joined
Nov 14, 2003
Messages
72
Hi there
I have a switchboard item opening a form relating to a parameter query. I need to make the parameter case sensitive so that everytime someone opens the form, the parameter box requests a case sensitive number.

Could you please assist?
Thank you
:eek:
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
I've never noticed SQL to be case sensitive.
There are worksheet functions EXACT(str1, str2) to compare two strings.

What is a "case sensitive number"?

I'm not certain as I've never tried, but you might have to look at the ascii value of the characters in a given string to determine case. Another possibility is, VBA has the UCASE function and you could compare the string to itself after applying the UCASE function to one side.

Code:
If strTest = UCASE(strTEST) Then
  ‘  What to do
End If
Just noticed the VBA DoCmd.FindRecord action when peeking at VBA help. It does have a case specific option.

Mike
 
Upvote 0
Ack. Variables should have been the same including capitalization. Typo error.

Code:
If strTest = UCASE(strTest) Then 
  ‘  What to do 
End If 

[code]
 
Upvote 0
Thank you very much for the awesome responses! I was also a bit concerned about the case sensitivity and thought that the password box might be a good idea. Yours is working perfectly!
Thanks again!
:pray:
 
Upvote 0
While I really do appreciate a thank-you when I think I've contributed, I think you meant to thank somebody else, possibly in another thread. I'm not sure how much I actually helped you here.

Good luck.

Mike
 
Upvote 0

Forum statistics

Threads
1,221,672
Messages
6,161,199
Members
451,688
Latest member
Gregs44132

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top