Validation Rule? IF (Field A) = (Cell Value), then Field B ok

G

Guest

For example
Field A = ID #'s
Field B = Characteristics from a drop down value list.

If [FieldA] = "32", then [Field B] Must be entered/selected (in the form)

I want the value list to activate on the form if Field A is "32"

Not sure if this is possible.

Thank you in advance,

T
 
G

Guest

Well you could try something like:

set control "b" to enabled=false

after_update textbox "A"

If [field A]="32" then
[fieldb](or combobox).enabled=true
else
[fieldb](or combobox).enabled=false
end if
 
G

Guest

For the example i stated it works, however:

I may be doing something wrong in visual basic, but I keep getting and error
message stating the Procedure name does not match.

I think it may be because of this:

My Field A row source is as follows:
SELECT [Table_Contribution_Type].[Cont_Type_ID],
[Table_Contribution_Type].[Cont_Type] FROM Table_Contribution_Type;

Which is making it a little more difficult.

Thank you again in advance...

Maurice said:
Well you could try something like:

set control "b" to enabled=false

after_update textbox "A"

If [field A]="32" then
[fieldb](or combobox).enabled=true
else
[fieldb](or combobox).enabled=false
end if

--
Maurice Ausum


T.Kay said:
For example
Field A = ID #'s
Field B = Characteristics from a drop down value list.

If [FieldA] = "32", then [Field B] Must be entered/selected (in the form)

I want the value list to activate on the form if Field A is "32"

Not sure if this is possible.

Thank you in advance,

T
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top