P
PBear
I want to create a (non-modal) pop-up form that acts like a subform -- i.e.,
it opens from a button on the main form, it's linked to the main form and
will update and synchronize itself as I cycle through each record in the
database on the main form.
[I've run out of room on the main form (I want to keep the entire database
window limited to 1024x768 pixels for sake of portability) and I don't want
to use tab pages (I want to be able to see the picture and the data on screen
at the same time).]
The pop-form will display one visible field, a picture control -- in Access
2007 this is an Attachment-type field, using its own built-in thumbnail
collector. I've had no trouble creating the pop-up form, and can set the
OnClick event for the calling button so that the window will pop up and
display the Picture for the current record selected on the main form:
DoCmd.OpenForm "frmPictures", , , "[Video_ID] =" & Me![ID], acFormEdit, , [ID]
The first problem is that the above command opens the window in a "Filtered"
state, with only one record showing -- I can't figure out any way to have
that window pop up unfiltered. (I've currently got the Picture data stored
in a separate, linked table -- should I make that a field in the main table
instead?)
The rest of the problems are, how do I:
1. Keep the records on the pop-up form in synch with the main form as I
cycle through records in the main form?
2. Deal with records in which the Picture field is blank (which are many of
them)?
3. Deal with different behaviours, depending on whether the pop-up windows
is open or closed (once open, I'll probably want to keep it open most of the
time)?
I just wish Access had a built-in method for allowing floating subforms!
Any ideas, severally or variously, will be appreciated.
Thanks.
it opens from a button on the main form, it's linked to the main form and
will update and synchronize itself as I cycle through each record in the
database on the main form.
[I've run out of room on the main form (I want to keep the entire database
window limited to 1024x768 pixels for sake of portability) and I don't want
to use tab pages (I want to be able to see the picture and the data on screen
at the same time).]
The pop-form will display one visible field, a picture control -- in Access
2007 this is an Attachment-type field, using its own built-in thumbnail
collector. I've had no trouble creating the pop-up form, and can set the
OnClick event for the calling button so that the window will pop up and
display the Picture for the current record selected on the main form:
DoCmd.OpenForm "frmPictures", , , "[Video_ID] =" & Me![ID], acFormEdit, , [ID]
The first problem is that the above command opens the window in a "Filtered"
state, with only one record showing -- I can't figure out any way to have
that window pop up unfiltered. (I've currently got the Picture data stored
in a separate, linked table -- should I make that a field in the main table
instead?)
The rest of the problems are, how do I:
1. Keep the records on the pop-up form in synch with the main form as I
cycle through records in the main form?
2. Deal with records in which the Picture field is blank (which are many of
them)?
3. Deal with different behaviours, depending on whether the pop-up windows
is open or closed (once open, I'll probably want to keep it open most of the
time)?
I just wish Access had a built-in method for allowing floating subforms!
Any ideas, severally or variously, will be appreciated.
Thanks.