Solved

Change to Combo

Posted on 2013-01-15
5
214 Views
Last Modified: 2013-01-15
Hello All,

Need a small favor –
Can you guys help me to Change the “ShipName” field in the form to a drop down instead of text input

thanks
finalTestPleaseRev.accdb
0
Comment
Question by:Rayne
  • 2
  • 2
5 Comments
 
LVL 61

Expert Comment

by:mbizup
ID: 38780619
Try this -

It's based on a sample from your earlier question, but I got there too late.

Look at the code behind the command button.
finalTestPlease---Copy.accdb
0
 
LVL 119

Assisted Solution

by:Rey Obrero
Rey Obrero earned 200 total points
ID: 38780640
test this

select a value from the combo box and it automatically filter the records
finalTestPleaseRev.accdb
0
 
LVL 61

Accepted Solution

by:
mbizup earned 300 total points
ID: 38780647
Here's the same think with your new sample...

All you need to do is right-click the textbox and select "Change to combobox"

Then set the combobox's rowsource property to:

SELECT DISTINCT [Ship Name] FROM tblSource
finalTestPleaseRev--1-.accdb
0
 

Author Closing Comment

by:Rayne
ID: 38780662
thanks everyone :)
0
 

Author Comment

by:Rayne
ID: 38780712
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now