The recordcount cannot be accessed directly from the form, only in code. to use it I placed a text box on the form. itself it has no controlsource. I used the Onload event of the form to make the text box = me.recordsource.recordcount.
Didn't get very far with this as a solution.
This is another idea. I have adapted the code from a command button used to open a reservations form and used a DCOUNT function to establish if the membershipNo exists. If it does then reservation form opens otherwise new member form opens.
Dim stDocName As String
Dim stLinkCriteria As String
Dim msg As String
msg = InputBox("Enter last 8 digits of membership No.", vbOKCancel)
If DCount("memberID", "[Members]", "[memberId] = " & msg) = 1 Then
DoCmd.OpenForm "MainReservationForm", , , stLinkCriteria
Else
DoCmd.OpenForm "Form1", , , stLinkCriteria
End If
This is now moving into the realms of UNIT12.
There is always the idea that if the membershipNo does not exist the main form will be blank when it opens, allowing New membership details to be entered. The students may also be asked to create something for the administrator users rather than members.