Webcontrol on subform prevents textbox typing on main form (1 Viewer)

bignose2

Registered User.
Local time
Today, 10:11
Joined
May 2, 2010
Messages
219
Hi,
really confused by this

I cannot type anything into a newly created unbound textbox on the main form.

I have a main form & a subform.
Mainform has a simple table as source. Not tabular, single records.
The subform just has a webcontrol to view .pdf.
There is no link between them i.e no child or master.

As soon as I use Me.WBSubForm.Form.WB1.Navigate (strInputFileName)
it prevent me from typing anything into this MainForm unbound text box.
I can click on it which fires but cannot type anything, cursor just sits there.

Before .Navigate I can type normally. On load the web control does not have a source so says the address is not valid, its when I press a button it loads the page. If I rem out just the one .Navigate line it still works so it is something to do with this single code.

I have an option group (which was there in early design) and this allows different selection, this is unbound also.

AllowEdits is still True & unbound anyway.

I have buttons on the main form which navigate the Mainform & the source names of the subfrom .pdf whic work fine.

I can use the oem search/filter box at the bottom all OK. I am actually trying to make my own search but I can't type anything.

THanks I/A
 

theDBguy

I’m here to help
Staff member
Local time
Today, 03:11
Joined
Oct 29, 2018
Messages
21,358
Hi. Where did you place the code to navigate the browser?
 

isladogs

MVP / VIP
Local time
Today, 10:11
Joined
Jan 14, 2017
Messages
18,186
Try this sample file viewer app which allows you to view PDFs as well as e.g. Excel/Word/PowerPoint files within Access in a browser window

NOTE:
1. The app is a modified version of something originally uploaded by AWF member arnelgp
2. If you have a recent version of Office the files may at first appear externally.
If so, just run the included registry file
3. Although this has no textbox on the form, I tried adding an unbound textbox and it remained editable. Is your textbox bound or unbound?
 

Attachments

  • SampleFileViewer.zip
    239.7 KB · Views: 66

Users who are viewing this thread

Top Bottom