Ok, so I'm trying to combine code from two different sources to get this to work right. What I'm doing is calling a specific IE window, making it active, and then sending data from the field on my Access form to the field on the website.
The first part works fine, but I cannot get the data to feed over (see bold section). When I was using this with another bit of sendkeys code, it worked fine. I realize the "IE" part won't work because there's no object called "IE," but I've tried swapping that out with other things and nothing works. HELP!
Private Sub Command0_Click()
Dim Window1 As Long
Window1 = FindWindow(vbNullString, "IE Document Title")
BringWindowToTop (Window1)
ShowWindow Window1, SW_SHOWMAXIMIZED
IE.Document.All.Item("WebFieldName").Value = Me.AccessFieldName
Command0_Exit:
End Sub
The first part works fine, but I cannot get the data to feed over (see bold section). When I was using this with another bit of sendkeys code, it worked fine. I realize the "IE" part won't work because there's no object called "IE," but I've tried swapping that out with other things and nothing works. HELP!
Private Sub Command0_Click()
Dim Window1 As Long
Window1 = FindWindow(vbNullString, "IE Document Title")
BringWindowToTop (Window1)
ShowWindow Window1, SW_SHOWMAXIMIZED
IE.Document.All.Item("WebFieldName").Value = Me.AccessFieldName
Command0_Exit:
End Sub