473,395 Members | 1,791 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,395 software developers and data experts.

How to lock textbox after the file is loaded on it

how to lock the textbox after I loaded the file attachment to it. I already specified vba code on textbox_AfterUpdate to disable the textbox but it seems the ON CLICK function is still not helping to disable the on click
Apr 24 '16 #1
2 917
NeoPa
32,556 Expert Mod 16PB
May I ask why it is unlocked at all?

Normally you just lock it in design mode. That won't stop it displaying data.
Apr 24 '16 #2
zmbd
5,501 Expert Mod 4TB
Fully agree with Neopa here.

With that said, you need to double check your other code to ensure that there isn't any code interfering with your desired outcome. I've done that to myself many times ;-) In fact, just did something along those lines last week, disabled my error trapping in a called function while troubleshooting and forgot to re-enable it in the function; however, the calling procedure still had error trapping enabled which resulted in the function error falling back from the function to the procedure... couldn't figure out why the calling procedure was failing and it was the function - wasted 15 minutes before it struck me what I had done!
Apr 25 '16 #3

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

Similar topics

2
by: fowlertrainer | last post by:
Hello python-list, On windows I try with this: import os f1=file('a',"w+",os.O_EXCL|os.O_WRONLY) f1.write("0") f2=file('a',"w+",os.O_EXCL|os.O_WRONLY) f2.write("1") f1.close()
3
by: Hon Seng Phuah | last post by:
Hi all, I have following code: use 5.004' use Fcntl ':flock'; sub check_file_status { $attempt_lock = 0;
3
by: M Bourgon | last post by:
Howdy, all. We have a (log-type) file that's constantly being written to. We need to grab the latest rows out of this file, insert them into a table, and then process them. We've found out the...
14
by: Frances Del Rio | last post by:
if (parent.frames.main.location == 'mediaselect.html') { I have a very simple frameset, name of frame where I'm checking is 'main'... why is this not working? I mean this is correct syntax,...
1
by: Tomas Palmquist | last post by:
I have loaded a file from disk with the Assembly.LoadFrom() method. What do I have to do so the file can be released and the file deleted ? Regards Tomas Palmquist Pointsec Mobile Technologies
4
by: muttu2244 | last post by:
hi all am trying to write some information into the file, which is located in ftp, and this file can be updated by number of people, but if at all i download a file from the ftp to my local...
5
by: marcello | last post by:
Hello I need to do this: 1 opening a file for writing/appending 2 to lock the file as for writing (i mean: the program that lock can keep writing, all others programs can't ) 3 wtite and...
7
by: nvx | last post by:
Hi, I have an application working with an Access database and I need to 'lock' the currently opened DB file in order to prevent it to be deleted, modified by other applications etc. Does anyone...
1
by: Smokey Grindle | last post by:
I am trying to attach a file, mail it then open it in a stream after to do something else, but if you put the mail procedure first it locks the file and the lock isnt released... because the next...
18
by: ryanvb83 | last post by:
I'm having some trouble with a particular form. I would like to lock a textbox until 7 other textboxes have a value in them. The other 7 textboxes are a mixture of text fields, double numers,...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
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...

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.