I have a splash screen (unbound form) that determins the name of the folder that the application is in (this is used to establish the user).
On Open
There is a text field on the Splash form called TXTPATHUSER with the following to clean it up:
I have a table called tblSettings with a field called UserName.
I want to (OnTimer of the Splash screen) insert Me.TXTPATHUSER into the tblSettings, UserName field.
I've tried this:
But my error is asking me for Me.TXTPATHUSER which IS on the unbound form. Am I referencing the text box correctly?
I can get text to insert i.e.
Your help is always appreciated.
On Open
Code:
Me.TXTPATH = Application.CurrentProject.Path
There is a text field on the Splash form called TXTPATHUSER with the following to clean it up:
Code:
=Mid([TXTPATH],InStrRev([TXTPATH],"\")+1)
I have a table called tblSettings with a field called UserName.
I want to (OnTimer of the Splash screen) insert Me.TXTPATHUSER into the tblSettings, UserName field.
I've tried this:
Code:
DoCmd.RunSQL ("INSERT INTO tblSettings ( UserName )VALUES (Me.TXTPATHUSER);")
I can get text to insert i.e.
Code:
DoCmd.RunSQL ("INSERT INTO tblSettings ( UserName )VALUES ('Any Text You Like');")
Your help is always appreciated.