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  dBforums > PC based Database Applications > Microsoft Access > valdationtext subfields?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-10-03, 14:37
b309 b309 is offline
Registered User
 
Join Date: Jan 2003
Posts: 3
Question valdationtext subfields?

If I want to put up a msgbox, I can specify the title that appears in the title bar on the top of the msgbox box with something like this:

msgbox "Here's the message",,"Here's the title"

If I want to do validation through access, I can set a validation rule for a field like this:

txtfld01.ValidationRule = "> 65"
txtfld01.ValidationText = "this field must be greater than 65"

But the msgbox that is displayed has a default value in the title, not the "Here's the title" header that is in the first msgbox above. Additionally I cannot reference all of the other msgbox features that I can when building my own, like the button that shows up in the box next to the message. And the beep that sounds in the case of a msgbox is not the same as the sound that comes from a Validation process.

Can I control what's in the title bar, and the sound?

TIA for any help

-bob thompson-
Reply With Quote
  #2 (permalink)  
Old 01-10-03, 15:21
FirstAndGoal4 FirstAndGoal4 is offline
Registered User
 
Join Date: Nov 2002
Posts: 150
Re: valdationtext subfields?

There are 2 versions of MsgBox, the MsgBox action and the Msgbox() function. I think you want to use the function.
Reply With Quote
  #3 (permalink)  
Old 01-10-03, 16:18
b309 b309 is offline
Registered User
 
Join Date: Jan 2003
Posts: 3
I'm not trying to use the msgbox action or function, but rather the ValidatioRule and ValidationText property. My problem is that while the Msgbox function allows you to manipulate the bar on the top of the msgbox, as in:

msgbox "here is the message",,"here is the bar"....

the ValidationText property does not have this option, as in:

fld1.ValidationText = "here is the message"

I see no reference to the ability when building a field validation of any way to tweek the bar on the top of the validation message window, and want to know if anyone knows of a way to do what amounts to:

fld1.ValidationBarOnTop = "here is the bar"

-bt-
Reply With Quote
  #4 (permalink)  
Old 01-10-03, 16:30
FirstAndGoal4 FirstAndGoal4 is offline
Registered User
 
Join Date: Nov 2002
Posts: 150
I don't think there is a way to tweek the validation error popup.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On