473,508 Members | 2,210 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access Forms

3 New Member
Hi I'm currently building a daabse in MS Access 2000, having not touched access for about 10 years. I need to conditionally hide / display a combobox (specfically a pop up calendar) depending on the answer to the previous combobox.

I only want the date box to be displayed if the answer to the previous field was 'Pass' currently I have this code:

Expand|Select|Wrap|Line Numbers
  1. Private Sub Field1_BeforeUpdate(Cancel As Integer)
  2.  
  3. If Me![Field1] = "Pass" Then
  4. Me![Field2].Visible = True
  5.  
  6. Else
  7. Me![Field2].Visible = False
  8. End If
  9. End Sub
  10.  
I've also set the visable format option to 'No' this works fine the first time the data is entered but if you look at the form again the field is hidden. I've got a feeling that the anser is simple but I'm still finding my feet in VB.

Thanks for any help

J

out of interest, I'm going to be building databases more often now would you guys / gals reccomend a book on Access or a book on VB? or both?
Aug 3 '07 #1
2 955
Rabbit
12,516 Recognized Expert Moderator MVP
You also need the code in the On Current event of the form.
As for books.. I use the Access help files, they're really good.
Aug 3 '07 #2
missinglinq
3,532 Recognized Expert Specialist
First off, depending on how long your memory is, you might want to invest in an Access for Dummies type book. People may laugh, but one of the biggest problems we see here and on other forums is that the people posting questions don't know the names of the objects or even the most basic procedures, and so can't post a question/problem so that it's understandable. An hour or two paging thru one of these books will probably stir up memories from your previous experience and give you a good foundation. And as programming texts go, they're dirt cheap!

An excellent book I just came across is called Fixing Access Annoyances (O'Reilly Media, Inc.) by Phil Mitchell & Evan Callahan. Mitchell is the lead analyst/programmer for Harvard University and Medical School, and still manages to write in a very down to earth, understandable manner! This book is about 350 pages and is nicely indexed for quick referencing, and does exactly what it's name suggests, tells you how to avoid the many pitfalls and fix the aggravations caused by Access' quirkiness, and in the process develop and run better apps! It's a real steal at 19.99 USD.

And lastly, spend a few minutes everyday looking at the questions posted here and look at the tutorials our members have posted! You'll learn a lot, and before you know it, you might find yourself answering questions!

Welcome to TheScripts!

Linq ;0)>
Aug 3 '07 #3

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

Similar topics

1
1991
by: mamatha | last post by:
Hi I have Access forms and i want to add our company's logo to that form.How can i add,if any one knows let me know.
2
3301
by: Kim Skytte | last post by:
HI! I have a few questions about access . 1) Does anyone know if it is possible to apply skins to Access forms ?? 2) Is is possible to hide the main access windows, and just show the forms.
7
2060
by: James Fortune | last post by:
In response to different users or situations (data context) I transform the appearance and characteristics of Access Forms through code. This seems to fit in with the idea of polymorphism. Do...
0
1235
by: vlpkumar | last post by:
I saw a lot of resources for creating and linking to a PDF document from within Access all over the internet. I would like to know if it is possible to accomplish the inverse task of hyperlinking...
7
3249
by: dtecmeister | last post by:
Looking to see how many people could use this kind of tool. I've got several large databases I've developed in Access with MySQL as the back-end. I've started using Linux instead of windows and...
3
4558
by: mumbaimacro | last post by:
hi i am a newbie to access programming,, i need help to 1. view PDF inside Ms-access forms whether the PDF Location from the Folder or the Path in table. 2. view ms- photoeditor...
19
25792
by: jalmar | last post by:
My question is related to Access forms. I have set up an Access form using 4 different tables~I am pulling 2 different numbers and the name of Trusts out of one table, I am pulling custodian name...
2
1336
by: =?Utf-8?B?UGV0ZQ==?= | last post by:
Happy New Year everyone. Quick question: does anyone know a good tool for converting Access forms into VB.Net form? Pete
2
4923
by: Luting | last post by:
Hi, Is it possible to update oracle via Access forms? I am thinking maybe I could make a link table connnected with oracle database. And the form could be based on the link table. Does this...
2
3613
by: sarah2855 | last post by:
How can I disable auto save function in access forms?Currently, If accidentally something is changed in forms, it gets saved automatically without being prompted. Thanks in advance
0
7132
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
7336
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,...
0
7401
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7063
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7504
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5059
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4720
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3211
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
773
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.