Cant set focus....

Just checked my 07.....same error... cursor is not in field until you click the mouse once... anyplace... :confused:
 
Not sure just what is causing the problem with the origina form in the database file that was posted. This would not be the first time that I have seen an Access form become corrupted and act very strange.

To prove what I suspected, I created another form using the same type of controls. I changed form using the Active X type control for the File dialog box and instead used a module that i got a long time ago. It works quite well. I added the code needed and now it works everytime.

Select the image file name from the File Dialog box and the dash will be added to the Descrition field and the cursor will be left in that field.

HTH
 
Last edited:
OK Mr B.... That one "kind of works" here..... After I add a new image all the records show the same image... needs a refresh someplace I guess..... But again... ALOT of code for a very small order....... The code for the original was very small..... I liked that. After looking at my machine here I am suspecting the Service pack...... This one also has SP3 ..... and throws the same error.... but seems to work on "SOS" computer which has SP1....
 
CEH,

Sorry for not having code in place to handle the updating of the picture. I was concentrating on making the functionality of cursor movement happen that I just overlooked the other.

As for the extra code. You might be able to go back and use the active X control that you were using, but it was my feeling that this might be having something to do with you not being able to set the focus where you wanted it to be.

If it comes to a choice, I would think that a small amount of code (that module is really small compared to some) and be able to ge the functionality you want would be a fair trade off, expecially when the only time that the code runs is when the File dialog box is being displayed.
 
Last edited:
Looks like I might not have a choice! :) Don't want an app that works on some machines and not others... Thanks for the help.
 

Users who are viewing this thread

Back
Top Bottom