You function is expecting something, the name of the control. Here is a very simple example from my own code
Grant
'txt3 is a textbox
Call webGetSelection(txt3)
Function webGetSelection(ctrlName)
ctrlName.Value = SelectedText
End Function
As far as I know you can't get the records back, if you deleted a whole table you can under some circumstances
Grant
Q179161 ACC: How to Recover a Table Deleted from a Database (Access 95 and 97)
Q209874 ACC2000: How to Recover a Table Deleted from a Database
This is taken from my own code, so there maybe a bit too much info, so apologies for that. It simply gets a record, gets a field (Fields(1)), then changes that data, then updates the field. The code then moves to the next record
Let me know if it helps
Grant
Dim rstSource As Recordset
Dim...
This may not be what you are looking for, but why don't you use the MS Internet Control? Since it is based on IE/Explorer you get some of the functionality of explorer, for example, use:
Me.WebBrowser1.Navigate "C:\"
Grant
Don't see why you would want to, but this should get you started
Private Sub cmdJoke_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
'a checkbox used to disable the moving button
'when the button moves to the end of the form the prog will crash
'could use a random num...
Try this. Let us know if it helps
'In your form
Option Explicit
Private Sub Form_Load()
iniPath = "c:\temp\temp.ini"
End Sub
Private Sub Command2_Click()
Call IniDetailsWrite("Section1", "Value1", "WrittenValue")
End Sub
Private Sub Command1_Click()...
This may help you to get info into the form. The tool gets HTML info from a website. You can modify it to add info to the website. I am still messing around with it, but it should give you a few ideas.
http://www.grantdonovan.co.uk/visualbasic/HTMLParser/HTMLParser.asp
Hi everyone,
I want to be able to find the size of a field that is linked to a textbox. For example, if the control, let's say a textbox, is named txt1 how can I find out the sizee of the field it is linked to.
I can find the field using - Me.txt1.ControlSource but then what?
Basically the...
You need to add section breaks (Insert > Break). You can then add page numbers to each section break independently of any other, just make sure you click on the 'start at' bit of the page number dialog box.
I hope that helps
Grant
Try this. Let us know if it helps
'In a module
Option Compare Database
'For connection details
'http://www.mvps.org/vbnet/index.html?code/network/internetgetconnectedstate.htm
Public Declare Function InternetGetConnectedState Lib "wininet" _
(ByRef dwFlags As Long, _
ByVal...
You could modify this code - unlike VB you can't have an array of controls
Dim ctl As Control
For Each ctl In Form_Form1.Controls
Debug.Print ctl.Name
Debug.Print ctl.ControlType
Next
Grant
The event - StatusTextChange - will show you what is under the mouse pointer, although it will also show other information as well (so be careful)
Grant
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.