Hi there!
There is a unbound text box and a list box (product_name) in the form, users
input a product number, the listbox shows the right product name.Is it
possible? How to do it? Thank you for any ideas and suggestion.
Paul from Bratislava, Slovakia 3 1490
Use the AfterUpdate event procedure of the text box to set the Value of the
listbox.
If you do not know how to use DLookup() to get the product_name from your
table, see: http://members.iinet.net.au/~allenbrowne/casu-07.html
Of course, you could just use a combo - that's kind of a combination of text
box and list box in one, and it will auto-complete the value as you type.
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"Paul T. Rong" <et***@hotmail. com> wrote in message
news:5n******** ************@ne ws.chello.at... There is a unbound text box and a list box (product_name) in the form, users input a product number, the listbox shows the right product name.Is it possible? How to do it? Thank you for any ideas and suggestion.
Paul from Bratislava, Slovakia
Allen,
It does not work, while I followed your idea putting the following:
--------------------------------------
Private Sub txt0_AfterUpdat e()
Me.ListBox1.Col umn(0) = DLookup("Produc t_name", "Product", "Product_no = '"
& Me.txt0 & "'")
End Sub
--------------------------------------
Where is the problem?
Thanks,
Paul
"Allen Browne" <Al*********@Se eSig.Invalid> дÈëÏûÏ¢ÐÂÎÅ
:41************ ***********@per-qv1-newsreader-01.iinet.net.au ... Use the AfterUpdate event procedure of the text box to set the Value of
the listbox.
If you do not know how to use DLookup() to get the product_name from your table, see: http://members.iinet.net.au/~allenbrowne/casu-07.html
Of course, you could just use a combo - that's kind of a combination of
text box and list box in one, and it will auto-complete the value as you type.
-- Allen Browne - Microsoft MVP. Perth, Western Australia. Tips for Access users - http://allenbrowne.com/tips.html Reply to group, rather than allenbrowne at mvps dot org.
"Paul T. Rong" <et***@hotmail. com> wrote in message news:5n******** ************@ne ws.chello.at... There is a unbound text box and a list box (product_name) in the form, users input a product number, the listbox shows the right product name.Is it possible? How to do it? Thank you for any ideas and suggestion.
Paul from Bratislava, Slovakia
To debug this, open the Immediate window, and enter:
? DLookup("Produc t_name", "Product", "Product_no = '" &
Forms!YourFormN ameHere.txt0 & "'")
For example, if Product_no is a Number field, (not a Text field), lose the
extra quotes:
DLookup("Produc t_name", "Product", "Product_no = " & Me.txt0
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"Paul T. Rong" <et***@hotmail. com> wrote in message
news:_g******** *************@n ews.chello.at.. . Allen,
It does not work, while I followed your idea putting the following:
-------------------------------------- Private Sub txt0_AfterUpdat e()
Me.ListBox1.Col umn(0) = DLookup("Produc t_name", "Product", "Product_no = '" & Me.txt0 & "'")
End Sub --------------------------------------
Where is the problem?
Thanks,
Paul "Allen Browne" <Al*********@Se eSig.Invalid> P4HkO{O"PBNE :41************ ***********@per-qv1-newsreader-01.iinet.net.au ... Use the AfterUpdate event procedure of the text box to set the Value of the listbox.
If you do not know how to use DLookup() to get the product_name from your table, see: http://members.iinet.net.au/~allenbrowne/casu-07.html
Of course, you could just use a combo - that's kind of a combination of text box and list box in one, and it will auto-complete the value as you type.
"Paul T. Rong" <et***@hotmail. com> wrote in message news:5n******** ************@ne ws.chello.at... > > There is a unbound text box and a list box (product_name) in the form, > users > input a product number, the listbox shows the right product name.Is it > possible? How to do it? Thank you for any ideas and suggestion. > > Paul from Bratislava, Slovakia This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jim in Arizona |
last post by:
My goal, somehow, is to populate a dropdownlist with all the user names
in active directory. I don't even know where to begin, really.
I added a reference to System.DirectoryServices so I could use the
System.DirectoryServices.ActiveDirectory namespace. I don't even know if
this is the right way to go as I can't seem to find anything in that
namespace that would help me query active directory for names.
I can't use an LDAP query...
|
by: rick |
last post by:
Hi friends
What is the best way to keep track of number of users logged into
database everyday.
Where does db2 store user connection information ? does it keep a log
of user connections?
meaning can i say, on last monday who logged in to database and when ?
|
by: printline |
last post by:
Hi all
I have a problem with a form script.
The form script should do the following:
When a user selects a value from a drop down list and hits the "next" button it should take him to a specific site. Also he has the option to check a checkbox "Remeber this choice" so that when he returns to the site it remembers what he has choosen from the drop down list and automatically takes him to a specific site.
Here is my code:
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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...
| |
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,...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| | |