Just learnt about this one but Ive come across two problems which turn out to be significant problems if I cant get anyone to help me sort them out.
I use the following code to create a new form using a template I have already designed:
[
vb]Private Sub mnuFileNew_Click()
Static Counter As Integer
Dim frm As New frmREG
Counter = Counter + 1
frm.Caption = "MDI Child" & Counter
frm.Show
End Sub[/
vb]
Only problem is, when I close the application, all forms are not there. Is there any way to save all the new forms created unless told to be deleted by the user ?
The Second problem is I cant seem to use the database I created. I used Data Manager to create a type of record sheet.
Everytime I click the 'Play' button to start my application I get:
[
vb]Compile Error:
User-defined not defined[/
vb]
And the following piece of code is highlighted:
[
vb]Private Sub datPrimaryRS_MoveComplete(ByVal adReason As ADODB.EventReasonEnum, ByVal pError As ADODB.Error, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset[/
vb]
Any ideas ?
Thankyou for looking.
Im new. Please be gentle :)