Question about Computers & Internet
Actually in my project using radio buttons ,combobox and textbox
If i clicked on radio button then its types can be display on combobox using msaccess database and then if i select one of them item in combobox then it will display on textbox
There are 2 ways:-
you can set the recordsource in the properties for the comboBox to a table or create a recordset and loop through it adding one item at a time, see example below:-
Dim dept As String
Dim db As DAO.Database
Dim rst As DAO.Recordset
Dim qd As DAO.QueryDef
Dim sQueryName As String
Set db = CurrentDb
dept = formname[Form_Name].Department.Text
sQueryName = "Query_Name"
Set qd = db.QueryDefs(sQueryName)
' set up input field for query
qd.Parameters("field_from_query") = dept
Set rst = qd.OpenRecordset()
Dim recCount As Integer
recCount = rst.RecordCount
If recCount > 0 Then
Do While Not .EOF
Set rst = Nothing
Set qd = Nothing
Set db = Nothing
Posted on Jan 13, 2009
a 6ya Technician can help you resolve that issue over the phone in a minute or two.
Best thing about this new service is that you are never placed on hold and get to talk to real repair professionals here in the US.
click here to Talk to a Technician (only for users in the US for now) and get all the help you need.
Posted on Jan 02, 2017
Tips for a great answer:
Jul 24, 2014 | Google Chrome
May 04, 2011 | Computers & Internet
Mar 30, 2017 | Microsoft Computers & Internet
Apr 24, 2009 | Microsoft Designing ASP.NET Applications...
Mar 28, 2009 | Microsoft Visual Basic 6.0 for PC
Dec 10, 2008 | Computers & Internet
Sep 29, 2008 | Computers & Internet
Feb 14, 2008 | Computers & Internet
Nov 17, 2007 | Compaq Presario 5000 PC Desktop
4,476 people viewed this question
Usually answered in minutes!