D
D
Hi:
I have a list box named org, and I trying to make it work; the multiselect
property is set Extended.
Where the below code should be placed; also what is [somecontrol]?
Dim varItem as Variant
Dim strResult as String
For Each varItem In org.ItemsSelected
strResult = strResult & Me!org.ItemData(varItem) & ", "
Next varItem
strResult = Left(strResult, Len(strResult) - 2)
[SomeControl] = strResult
*****
The query that the report is based on is:
SELECT DISTINCT Journals.org, Journals.account, Journals.sub_account,
Journals.product, Journals.cust_group, Journals.eff_date, Journals.curr_code,
Journals.journal_id, Journals.amt_class_type, Journals.amount_book,
Journals.amount_tran, Journals.post_period, Journals.post_date,
Journals.journal_seq, Journals.description
FROM Journals
WHERE (((Journals.org)=[forms]![paramform]![org]) AND
((Journals.account)=[forms]![paramform]![account]) AND
((Journals.product)=[forms]![paramform]![product]) AND ((Journals.eff_date)
Between [Please enter the Start Date] And [Please enter the End Date]));
Thanks a lot,
Dan
I have a list box named org, and I trying to make it work; the multiselect
property is set Extended.
Where the below code should be placed; also what is [somecontrol]?
Dim varItem as Variant
Dim strResult as String
For Each varItem In org.ItemsSelected
strResult = strResult & Me!org.ItemData(varItem) & ", "
Next varItem
strResult = Left(strResult, Len(strResult) - 2)
[SomeControl] = strResult
*****
The query that the report is based on is:
SELECT DISTINCT Journals.org, Journals.account, Journals.sub_account,
Journals.product, Journals.cust_group, Journals.eff_date, Journals.curr_code,
Journals.journal_id, Journals.amt_class_type, Journals.amount_book,
Journals.amount_tran, Journals.post_period, Journals.post_date,
Journals.journal_seq, Journals.description
FROM Journals
WHERE (((Journals.org)=[forms]![paramform]![org]) AND
((Journals.account)=[forms]![paramform]![account]) AND
((Journals.product)=[forms]![paramform]![product]) AND ((Journals.eff_date)
Between [Please enter the Start Date] And [Please enter the End Date]));
Thanks a lot,
Dan