If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
this code doesn't work fully
I am trying to create a login box for an Access 2007 database using some
VB8 code I found: Private Sub CreateAcc_Click() Dim username As String username = Text23 If Text23 = "" Then MsgBox "Enter a Username !" Else If Text25 = "" Then MsgBox "Enter a Password !" Else Open app.Path & "\Accounts\Users\" + username + ".txt" For Output As #1 Print #1, Text23 Print #1, Text25 Close #1 End If End If End Sub It runs up to the line 'Open app.path etc, then get a runtime error 424, Object required. What would that be, and what should the correct syntax be for Open app.path Thanks |
Thread Tools | |
Display Modes | |
|
|