473,387 Members | 1,892 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Continuous Forms and making a field invisible depending on another field

Hello all.

I have a continuous form that I need to make a field invisible or visible depending on the selection in another field. I have tried using Form_Current() and the following code:

Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_Current()
  2.      If VisitType = 3 Then
  3.           Me.cboMonitor.Visible = True
  4.      Else
  5.           Me.cboMonitor.Visible = False
  6.      End If
  7. End Sub
Of course this does not work. It changes all of the records based on the selected or active record. I am using Access 2003 on Windows XP Pro.

Am I just being silly and overlooking something or does someone have a wise and masterful solution.

Thanks
May 2 '07 #1
4 7736
MMcCarthy
14,534 Expert Mod 8TB
In form design view go to the Format - Conditional Formatting. It won't allow you to toggle visible and invisible but it will allow you to disable the combobox.
May 4 '07 #2
In form design view go to the Format - Conditional Formatting. It won't allow you to toggle visible and invisible but it will allow you to disable the combobox.
How would I go about doing this?

Thanks
May 9 '07 #3
missinglinq
3,532 Expert 2GB
Click on the combobox to select it
Goto Format > Conditional Format
In Condition select Expression Is
In the box to the right type VisitType <> 3
You'll see B(old) I(talics) U(nderline) ForeColor BackColor Enabled
Click on Enabled (which looks like a rectangle with squiggles inside it)
This actually sets Enabled to False

Good Luck!
May 10 '07 #4
NeoPa
32,556 Expert Mod 16PB
How would I go about doing this?

Thanks
The instructions are in Mary's post (#2).
What precisely, are you having trouble with?

*edit*
Didn't catch Linq's post. No need to respond to this directly if that post (#4) gives you what you need.
May 10 '07 #5

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

Similar topics

4
by: Matthew | last post by:
I am not the most talented programmer to grace the earth by a long shot. But I've got a gripe I need to air about the .NET implementaion of Visual Basic. I can live with alot of the major changes...
2
by: Cro | last post by:
Dear Access Developers, I am developing a form with 'default view' set to "continuous forms". I am suffering with a problem I can't yet see a solution too. Each record has many fields. Two...
3
by: David | last post by:
Hi, I need a button shown for each record (cont. form) with specific captions on each. I have a notes form for each record. When a user presses the button they can read the notes. I want to...
14
by: Mark | last post by:
How can the instances of a textbox control on an continuous form be addressd? Can a specific instance be addressed? For example, a continuous form has ten records. How can the textbox for the...
3
by: PeteCresswell | last post by:
Users want negative values to have a yellow background. No problem on the subforms where every value is a discreet field, but I can't figure out how to make it happen on a continuous form where...
9
by: Edwinah63 | last post by:
Hi everyone, Please let there be someone out there who can help. I have two BOUND combo boxes on a continuous form, the second being dependent on the first. I have no problem getting the...
2
by: panwala_bhavesh | last post by:
Thanks in advance... I have a form displaying the results of a query in a continuous form style. I want to be able to double-click on the key field of the form (a textbox, in this case a AssetID)...
14
by: =?Utf-8?B?UHVjY2E=?= | last post by:
Hi, I'm using VS2005 and .net 2.0. I'm creating an application that has 3 forms. I want allow users to move forward and backward with the forms and retain the data users have entered. I thought...
2
by: OllyJ | last post by:
Hi guys hope you can help... ...do you have any idea how you can set a control's (within a single record in a continuous form) property to visible=false depending on the outcome of an update...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.