I decided to split up my database by putting the back end onto a server PC, and distribute the accde version of my database. However straight away I noticed that there has been a problem with it sort of ignoring part of the code on one of my forms.
Here is the code:
Prior to the split it would work perfectly, but ever since I did it, the combo box doesn't show the Project Name of record one anymore. Similarly If I click on the drop box and pick a record, it does successfully jump to the record, but most of the time cboProjectName becomes empty.
I have tried numerous times to decompile and compact (db and vba), and it hasn't solved the problem.
I would appreciate any help.
Here is the code:
Code:
Private Sub Form_Load()
If Not IsNull(Me.OpenArgs) Then
'find the record that matches OpenArgs
Dim rs As DAO.Recordset
Set rs = Me.RecordsetClone
rs.FindFirst "ProjectName = " & Me.OpenArgs
If Not rs.EOF Then
Me.Bookmark = rs.Bookmark
End If
End If
[B]Me.cboProjectName = [ProjectName][/B]
End Sub
Prior to the split it would work perfectly, but ever since I did it, the combo box doesn't show the Project Name of record one anymore. Similarly If I click on the drop box and pick a record, it does successfully jump to the record, but most of the time cboProjectName becomes empty.
I have tried numerous times to decompile and compact (db and vba), and it hasn't solved the problem.
I would appreciate any help.