473,666 Members | 2,088 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 959
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
2003
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
3321
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
2071
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 people consider Access Forms to be Polymorphic? James A. Fortune
0
1243
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 from a PDF document such that the hyperlinks would open up MS Access forms. I see a use for such a thing for documentation purposes. Any suggestions? Prassu
7
3265
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 the only thing I can't migrate is my Access databases. I'm looking to export them in a standard file format, then provide convert functionality into SWT, Flash, HTML, Native and/or some other formats.
3
4569
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 inside ms-access forms.
19
25824
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 and acct number from 2nd table, 2 different numbers from Investment manager table and then 3 empty fields (at this time-needs to be populated by form) out of the 4th table. Can you tell me why I am not able to enter data into the 3 empty fields while...
2
1343
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
4931
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 sound feasible? Any better ways? Thank you.
2
3627
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
8449
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8784
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8556
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8642
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7387
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4198
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4371
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2774
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1777
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.