|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
access help please!
Hi, is there any way i can extract data from a list in to a query?
i have been populating list boxes using sql and vb statements but i need the data in a query, is there any way i can do this. Thanks. MAiny |
|
#2
|
|||
|
|||
|
Can you explain what you need in more detail? I don't understand what you're looking to accomplish.
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
|
#3
|
|||
|
|||
|
Hi, i have been doing sql statements in VB querying on a query named "filterSectorNoSelect"
Code:
Dim Source1 As String Source1 = "SELECT [filterSectorNoSelect].[SourceNo], [filterSectorNoSelect].[OpportunityId], [filterSectorNoSelect].[CampaignName], [filterSectorNoSelect].[SourceType] " & _ "FROM filterSectorNoSelect " & _ "WHERE [HorizontalNo] = " & Me.Combo100.Value Me.List98.RowSource = Source1 Me.List98.Requery With this statement i have been populating a list box. Now i have all the data i need in the list box is there any way i can get it all back into a query or another table using INSERT or something? As i need to do reports on all the data in the list box. Any help would be great Cheers, Mainy |
|
#4
|
|||
|
|||
|
Easiest would be to use an ADO datalist that's bound to your data. Then any edits you do in the list will update your tables.
Otherwise, you'll need to write some code that looks at all the items in your list and creates an INSERT statement that will insert into another table. You might look at the VB report generator or other VB report generators like Crystal Reports if all you need is a report. |
|
#5
|
|||
|
|||
|
cheers
|
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > access help please! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|