Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form goes blank

Status
Not open for further replies.

BJZeak

Programmer
May 3, 2008
230
CA
Access 2k3 one main form with a timer that updates form.caption with the time ... the form captures a barcode from a standard barcode gun and creates a filename based on the number presented ... using filesystem it generates an appropriate suffix depending on the number of times the same barcode is scanned. The barcode gun triggers a process to automatically take a picture then renames the picture file with the filename ... Focus is given to the camera software which takes and uploads a picture to the pc ... the ACCESS application timer is lengthened for this process and when it times out the app steels focus back from the camera software.

This application has been working at least to my knowledge for over 2 years ... however recently it has been discovered that the Process is blanking out the main form and not redrawing the controls ... there is a default button associated with this form and it is still accepting <CR> but not sure how or why the forms controls disappear.

Anyone have a suggestion on how I can troubleshoot this? Without the Barcode Text Control the picture has no way to be properly named. Currently I have to stop the app and restart it to fix the issue.
 
Without the Barcode Text Control the picture has no way to be properly named.

Are you saying that in addition to the display being odd it does not work?

Has the computer, video Card or monitor changed? If so, update the drivers.
 
No same machine no hardware or software changes ... the access main window with the application window are the only thing on the screen but the application window is empty.

this machine is not on the internet

the access program is still running as it responds to hitting the enter key (via the default button) plus is grabbing focus (the window needs to have focus in order to capture the barcode scanner output) but for whatever reason the window controls are all MIA

Windows should redraw all the objects but something is obviously not allowing this to happen.

I was hoping someone might be able to provide some method to locate where this process is going astray.
 
When it steals focus back to access try repainting the form...


Code:
application.Screen.ActiveForm.Repaint 'assuming the form is active

Me.Repaint 'If the code is on the form

Forms!Formname.form.repaint 'this should always work.
 
Thanks I will try that ... I do a requery which my assumption would be that it should do the repaint ... I have been mulling the process over in my head and wondering if the timer has gotten locked into its short cycle such that it doesn't get time to repaint.

What I do is set the timer to 10 on formload or return from any child forms this allows a slight delay before entering the requery/screen details updates ... the on timer process should be increasing this time to 1000

if something is retriggering the 10 under some condition then perhaps the process is continually in the timer ... I am going to set the short timer to 500 and see if this issue goes away.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top