"rkc" <rkc@yabba.dabba.do.rochester.rr.bomb> wrote in
news:H6M2c.137182$%72.77031@twister.nyroc.rr.com:
[color=blue]
>
> "Trevor Best" <nospam@localhost> wrote in message
> news:404b881a$0$15206$afc38c87@auth.uk.news.easyne t.net...[color=green]
>> David W. Fenton wrote:[color=darkred]
>> > "rkc" <rkc@yabba.dabba.do.rochester.rr.bomb> wrote in
>> > news:41H2c.135670$%72.57943@twister.nyroc.rr.com:
>> >
>> >
>> >>"Douglas J. Steele" <NOSPAM_djsteele@NOSPAM_canada.com> wrote
>> >>in message
>> >>news:g_F2c.184031$Qg7.63431[/color][/color][/color]
@news04.bloor.is.net.cable.rogers.com[color=blue][color=green][color=darkred]
>> >>...
>> >>
>> >>>"Trevor Best" <nospam@localhost> wrote in message
>> >>>news:404b0eb1$0$21236$afc38c87@auth.uk.news.eas ynet.net...
>> >>>
>> >>>>The form has to be open to get it's caption.
>> >>>>
>> >>>>Try:
>> >>>>Public Function GETFRMCAPTION(FRMNM As String) As String
>> >>>> DoCmd.OpenForm FRMNM, acDesign
>> >>>> GETFRMCAPTION = Forms(GETFRMCAPTION).Caption
>> >>>> Docmd.Close FRMNM, acSaveNo
>> >>>>End Function
>> >>
>> >>This function is in dire need of a "air code" warning.
>> >>
>> >>GETFRMCAPTION = Forms(FRMNM).Caption
>> >>DoCmd.Close acForm, FRMNM, acSaveNo
>> >
>> >
>> > Not only that, but it assumes the form is not open when it
>> > runs. I'd be pretty annoyed if I had the form open and it
>> > suddenly disappeared.
>> >[/color]
>> Oh well, I'm sorry I didn't spend at least a couple of hours
>> testing the function under all possible circumstances to answer a
>> fecking newsgroup post. Sheesh, I dunno why I bother sometimes.[/color]
>
> Was so touchy?
>
> I only replied after an expert corrected an expert and the
> function still had problems even running.
>
> DWF's point is a real killer though, isn't it?[/color]
I don't know if it's a killer or not, but it does suggest that
perhaps the proper way to accomplish this is through the Documents
collection (assuming A97) or via whatever the name of the new
collection is in A2K+.
--
David W. Fenton
http://www.bway.net/~dfenton
dfenton at bway dot net
http://www.bway.net/~dfassoc