PC Review


Reply
Thread Tools Rate Thread

Conditional Statement Syntax

 
 
Jay
Guest
Posts: n/a
 
      10th Aug 2008
Greetings! I have checked the Access Help, online help, tutorials, even the
Dummies reference, but I can't find the correct way to make this work:

I have a combo box field in a form with 5 text options. I'm trying to
create a situation where if a certain option is chosen, a user prompt appears
somehow on the screen, perhaps the background of another field on the form
changes color or something.

Basically, "if userschoice = option3 then acceptvalueandprompt else
justacceptvalue"

Thanks,

 
Reply With Quote
 
 
 
 
fredg
Guest
Posts: n/a
 
      11th Aug 2008
On Sun, 10 Aug 2008 15:22:01 -0700, Jay wrote:

> Greetings! I have checked the Access Help, online help, tutorials, even the
> Dummies reference, but I can't find the correct way to make this work:
>
> I have a combo box field in a form with 5 text options. I'm trying to
> create a situation where if a certain option is chosen, a user prompt appears
> somehow on the screen, perhaps the background of another field on the form
> changes color or something.
>
> Basically, "if userschoice = option3 then acceptvalueandprompt else
> justacceptvalue"
>
> Thanks,

What is the datatype of the bound column of the combo box?
Number?

Code that control's AfterUpdate event:
If [UserChoiceControl] = 3 Then
MsgBox "You selected # 3."
End If

Text?
If [UserChoiceControl] = "Option3" Then
MsgBox "You selected Option 3."
End If


--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Syntax for If then Conditional Statement Melissa Microsoft Access Queries 5 27th Jun 2008 08:24 PM
need help with syntax of if statement Melody Microsoft Excel Worksheet Functions 3 15th Feb 2008 05:05 PM
Using query results within Conditional Statement...sequenced conditional queries rafael.farias.jr@gmail.com Microsoft Access 3 30th Aug 2006 02:08 PM
select statement into if statement in an event code (syntax error =?Utf-8?B?dG90YQ==?= Microsoft Access VBA Modules 1 12th Dec 2004 11:13 AM
help with IF statement syntax =?Utf-8?B?TWlrZSBC?= Microsoft Word Document Management 4 22nd Jul 2004 05:29 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:00 PM.