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

Combo Lostfocus

I posted this earlier... or thought I did... anyway.. it's doesn't
appear in the list so I'm reposting it.

Can someone please explain to me how to set up the lostfocus event
for a combo box. I need the combo to return to its default value when
the user clicks away from it ... either somewhere on the form itself
or another app. I have no clue how to do this and would really
appreciate some help.

Thanks!

Jan 28 '07 #1
3 2617
"Torilyn73" wrote
Can someone please explain to me how
to set up the lostfocus event for a combo
box. I need the combo to return to its
default value when the user clicks away
from it ... either somewhere on the form
itself or another app.
I trust that this Combo Box is unbound. If it is bound to (has a Control
Source of) a Field in the RecordSource of the Form, what you describe will
make it useless.

Please clarify before anyone wastes both their and your time and effort.

Larry Linson
Microsoft Access MVP
Jan 28 '07 #2
yes it is unbound. I can make it bound if need be. Let me explain what
I'm trying to do... I can also email a test copy of my db. I can't see
how to attach it to this message.

My form has one memo field and many combo boxes. I want to remove the
memo field from the form and instead have the selection made in the
combo box appear in a pop box, be automaticallly copied to the
clipboard and then when the user clicks anywhere else (be it in the db
or another application) the pop up closes and the combo box returns to
the default value. Here is the process I want to end up with. I have
the form set up with the memo field and combo boxes and the default
values set up for each combe box.

1. User chooses item in combo box
2. pop up appears with the selected record showing (only one field
from
the record will be there, a memo field)
3. the text in that popup box is automatically copied to the
clipboard.
4. the user then clicks on the application we work in (this causes the
popup to close because the focus moved to another window) and does
ctrl
V (or right click and past) to paste the text into the application we
work in.
5. The next time the user goes to the database to make another
selection, the pop up is gone and the combo box has reset to the
default value it is set for.

I was told to go here: http://allenbrowne.com/func-07b.html

and I'm sure that is excellent info however it is over my head.

I need some help here.
On Jan 28, 4:39 pm, "Larry Linson" <boun...@localhost.notwrote:
"Torilyn73" wrote
Can someone please explain to me how
to set up the lostfocus event for a combo
box. I need the combo to return to its
default value when the user clicks away
from it ... either somewhere on the form
itself or another app.

I trust that this Combo Box is unbound. If it is bound to (has a Control
Source of) a Field in the RecordSource of the Form, what you describe will
make it useless.

Please clarify before anyone wastes both their and your time and effort.

Larry Linson
Microsoft Access MVP
Jan 28 '07 #3
OK,, since no one can answer that question lets back up try another
tactic. Forget the pop up. How about just setting the combo box so
that when the database looses the focus, it returns to it's default
value. Can anyone give me an explanation how to do that. I have tried
using the Microsoft help but its about useless.

Thanks!

On Jan 28, 5:21 pm, "Torilyn73" <torily...@gmail.comwrote:
yes it is unbound. I can make it bound if need be. Let me explain what
I'm trying to do... I can also email a test copy of my db. I can't see
how to attach it to this message.

My form has one memo field and manycomboboxes. I want to remove the
memo field from the form and instead have the selection made in thecombobox appear in a pop box, be automaticallly copied to the
clipboard and then when the user clicks anywhere else (be it in the db
or another application) the pop up closes and thecombobox returns to
the default value. Here is the process I want to end up with. I have
the form set up with the memo field andcomboboxes and the default
values set up for each combe box.

1. User chooses item incombobox
2. pop up appears with the selected record showing (only one field
from
the record will be there, a memo field)
3. the text in that popup box is automatically copied to the
clipboard.
4. the user then clicks on the application we work in (this causes the
popup to close because the focus moved to another window) and does
ctrl
V (or right click and past) to paste the text into the application we
work in.
5. The next time the user goes to the database to make another
selection, the pop up is gone and thecombobox has reset to the
default value it is set for.

I was told to go here: http://allenbrowne.com/func-07b.html

and I'm sure that is excellent info however it is over my head.

I need some help here.

On Jan 28, 4:39 pm, "Larry Linson" <boun...@localhost.notwrote:
"Torilyn73" wrote
Can someone please explain to me how
to set up thelostfocusevent for acombo
box. I need thecomboto return to its
default value when the user clicks away
from it ... either somewhere on the form
itself or another app.
I trust that thisComboBox is unbound. If it is bound to (has a Control
Source of) a Field in the RecordSource of the Form, what you describe will
make it useless.
Please clarify before anyone wastes both their and your time and effort.
Larry Linson
Microsoft Access MVP- Hide quoted text -

- Show quoted text -

Feb 1 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: MJW | last post by:
Is there a way for me to know if or which command button was just clicked that triggers the LostFocus event for the current control on a Form? I have a form that has many types of users who each...
2
by: vooose | last post by:
Does anyone know the difference between these two? The doc for LostFocus says 'Occurs when the control loses focus.' whereas for Leave it says 'Occurs when the input focus leaves the control'...
16
by: Mike L | last post by:
This is for a Win form. My combo box DropDownStyle is set to simple. When the user types in a 3 character string in the combo box, the closest item in the collection is shown, right below where...
4
by: dudzcom | last post by:
hi, this is the first time i've posted to this board, though i have been a devoted lurker for some time i have been working in vb.net and run into a couple problems that seem to require solutions...
0
by: timbobd | last post by:
Using Visual Basic .NET 2003, I have created a combobox with custom code for "autocomplete" functionality and to trigger a DropDown event when the user starts typing. I want to do a database lookup...
6
by: Carmon | last post by:
I am using Managed C++ with a CFormView and a MaskedTextBox and have used MAKE_DELEGATE to sink the LostFocus event of this control. I have other events I've sinked off this control and they all...
14
by: teddysnips | last post by:
WINDOWS FORMS I've a form that has a textbox that allows the user to enter a string. On the LostFocus event, the textbox formats the string into a preferred format. However, if the user...
0
daniel aristidou
by: daniel aristidou | last post by:
From what i know, to do this you bind a combo to a datatable. (so the data keeps even when the file is shut) You then add code that tells the combo box to add a new row with the data typed into the...
9
by: dozingquinn | last post by:
Hello, I have a combo box on a form that I would like to 'lock' the selection of after the user makes a selection, then either moves to the next record or saves the form. This selection will...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...

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.