I've been at this for a few days, not making any progress, so I'm asking for help.
I have an application you log into based on an ID number (example 45)
In the app, there is a label. By default is has "lblID" in it, when when you log in, the 45 goes there (comes from MySQL)
I need to create a new folder on startup, and that folder needs to be named according to that ID number.
The problem I'm running into , is when the application starts, it creates the folder just fine, but it never names it according to the ID. It always names it lblID.
The code to create the folder is in the frmLoad-
Then it goes to the code in a module-
Public Sub CreateIDfolder() ' Create the officers folder based on his ID number ' This is for the new version, a new multi-user application. If Not Directory.Exists(myOfficerIDFolder) Then Directory.CreateDirectory(myOfficerIDFolder) End If ' Move current files into the new folder- the log files based on year. End Sub
Then in the same module, it creates the name from the ID number (or so it should)
Public myFilesFolder As String = myAppDataFolder & "Files\" Public myOfficerIDFolder As String = myFilesFolder & "" & frmMain.lblID.Text & ""
So as I mentioned, the folder is always lblID. Where am I going wrong?