Live Chat & Podcast at 1:00PM Eastern on Sunday!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Business Applications
Tag Cloud
access acer asus batch bios bsod computer crash desktop driver drivers error ethernet excel freeze gaming gpu hard drive hardware hdmi internet laptop malware memory modem monitor motherboard network printer problem ram registry router slow software sound trojan ubuntu 11.10 uninstall usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Software & Hardware > Business Applications >
Solved: Access 97 forms

Reply  
Thread Tools
Ed1967's Avatar
Computer Specs
Junior Member with 7 posts.
 
Join Date: Jan 2009
Experience: Intermediate
30-Jan-2009, 07:43 AM #1
Solved: Access 97 forms
Hi all

This is my first post on here, so please be gentle!

I am a relative newcomer to Access 97 (which we still use at work), and have created a form which includes customer records. However, what I have now been asked to do is beyond me. One of the fields can be either empty or populated. I have been asked to ensure that if the field is empty it cannot be amended, but if it is populated, it can be changed if necessary (but not to an empty field). I currently have it set up as an enabled/unlocked text box, so it can be amended whether empty or populated.

Is there any way of doing what I have been asked? If you know the answer, please treat me like I'm an idiot and make it very simple to understand!!!

Many thanks for taking the time to read this.

Regards

Ed
OBP's Avatar
OBP OBP is offline
Computer Specs
Distinguished Member with 14,665 posts.
 
Join Date: Mar 2005
Location: UK
Experience: An old Basic Programmer
30-Jan-2009, 11:18 AM #2
Ed, welcome to the Forum.
About the only way to do this is with VBA code.
So the first place to work with is the "On Current Event Procxedure" of the Form.
With the Form in Design View click on the Events Tab, then on the "On Current" event and then select Procedure from the drop down that appears.
3 small dots should also appear, click on those to open the VBA Editor at the correct Event and type in
if isnull(me.fieldname) then me.fieldname.enabled = False

Where fieldname is the name of the field that you want disabled when it is Blank.
The VBA editor should offer the control names after you type in me. and as you type in the other characters jump to those available with those letters.
See if you can get that to work.
__________________
OBP
I do not give up easily
Ed1967's Avatar
Computer Specs
Junior Member with 7 posts.
 
Join Date: Jan 2009
Experience: Intermediate
03-Feb-2009, 06:31 AM #3
Thanks OBP - that was helpful, it works now. Thanks for your time.
Reply

Tags
access, empty, field, form, populated

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 12:38 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.