T
TSIsolutions
Good Afternoon,
I am in the process of developing a POS application. I want certain
forms (On Open Event) to go directly to the last record. These forms
sometimes contain a ListView or Image Controls which are filled from a
function placed in the On Current event.
The problem that occurs is when I use Docmd.GotoRecord,, acLast or
DoCmd.RunCommand acCmdRecordsGoToLast my Image Control or my ListView
controls are blank. If I go to the previous record and then back, then
the controls are filled. When I do not use the GotoRecord event and the
Form Opens to the first record, all the controls are filled.
I have tried everything I can think of but it doesn't work. I know
the Curent Event is loaded since I tested the event by adding a MsgBox
to see if it loads. I have also tried to Refresh, Repaint and Requery
but it doesn't work.
If you wish to recreate the error, simply place an image control on a
form and use the LoadPicture Method in the Current Event or fill the
ListView control from the On Current event and add a GotoRecord,,
acLast in the On Open event.
I would REALLY appreciate any help I can get.
Lawrence
I am in the process of developing a POS application. I want certain
forms (On Open Event) to go directly to the last record. These forms
sometimes contain a ListView or Image Controls which are filled from a
function placed in the On Current event.
The problem that occurs is when I use Docmd.GotoRecord,, acLast or
DoCmd.RunCommand acCmdRecordsGoToLast my Image Control or my ListView
controls are blank. If I go to the previous record and then back, then
the controls are filled. When I do not use the GotoRecord event and the
Form Opens to the first record, all the controls are filled.
I have tried everything I can think of but it doesn't work. I know
the Curent Event is loaded since I tested the event by adding a MsgBox
to see if it loads. I have also tried to Refresh, Repaint and Requery
but it doesn't work.
If you wish to recreate the error, simply place an image control on a
form and use the LoadPicture Method in the Current Event or fill the
ListView control from the On Current event and add a GotoRecord,,
acLast in the On Open event.
I would REALLY appreciate any help I can get.
Lawrence