Pardon me, but if the form remains open, then the value doesn't change
(unless you do something to reset it)
In the code you are running after your code that opens the report, you
should be able to set the combobox's value to null.
I'm sure that Allen Browne can tell you exactly where to put the code
change
if you decide to post the code that you are using to call the report.
Now you have lost me So for instance in the OnLostFocus event which I
think
would work(?) how could I assign a null value there??
Confused now
:
Assign Null to the combo in whatever event suits you.
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Reply to group, rather than allenbrowne at mvps dot org.
mmm no sorry but the combo is unbound and Default value is indeed
clear -
weird!
When the report is closed and form viewed the report previously
selected
is
shown. Not a real issue just doent look good?
Any more thoughts?
:
The form will open without any value chosen in the combo if the
combo
is
unbound and has nothing in its DefaultValue.
Mmmm thats fine and it works if I put in :
DoCmd.OpenReport Me!CmbSelectReport, acViewPreview
in the AfterUpdate of my combo box. One slight quibble ; when I
next
go
into
the form its displaying the last report I selected. Idealy it
should
allways
refresh to the top of the list or better still show empty?
:
To list all reports in your combo, set its RowSource to:
SELECT [Name] FROM MsysObjects
WHERE (([Type] = -32764)
AND ([Name] Not Like "~*")
AND ([Name] Not Like "MSys*"))
ORDER BY [Name];
More info:
List Box of Available Reports
at:
http://allenbrowne.com/ser-19.html
I want to have a form where I can select a report from the
growing
list
I
am
creating which are just held in the reports objects. Probably
want
to
do
this
from a combo box??
how can I do this please?