I'm using Access 2000. I've built a simple form that uses the common dialog to build a text string of selected files that I'll load as new records into one of the tables. I want to allow for multiple files to be selected so I've set the .FLAG property to allow multiple-selections (.FLAG =...
I'm using ADO to populate a "SELECT" form, which pulls a unique list of people from an Access DB. Once the user selects a name from the list I produce an HTML table from all the tblJobs records that have that name (see code below). This works very well, but now I want the user to be...
Hello All,
I'm using the following FileSystemObject code to list and count the files in a given folder:
Private Sub Command1_Click()
Dim fsoSysObj As New FileSystemObject
Dim fld1 As Folder, fld2 As Folder, strPath As String
Dim fil1 As File
Dim i As Integer 'counter variable
i = 0
strPath =...
OK, got it to work. Here's the code I used:
Option Explicit
Private lblLabel1 As Label
Private Sub Command1_Click()
Set lblLabel1 = Form1.Controls.Add("VB.label", "lblLabel1")
lblLabel1.Top = 0
lblLabel1.Left = 0
lblLabel1.Caption = "this is label1"...
Yes, this creates a new button based on a command button that's already on Form1, but how about creating a new label from scratch? Or is there a better way to place a text label in a frame next to a point that changes based on user input?
Thanks.
How do I programaticaly create a new label on my form at run-time if I don't already have one on the form? This seems like one of those simple things that probably isn't so simple...
Thanks for any help or guidance!
I'm new to this stuff so forgive what is probably an easy question. I'm using the following statement in the General section of the module for Form1:
Public iID As Integer
The iID variable eventually gets set to a number. When I open Form2 and try and populate a text field with the value...
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.