Dear All,
I am fairly new to access tho I have a fair bit of experience with VBA in excel. I am wanting (amongst other things!) to design a form with a subform on it to show certain business enquiries. The subform to show all of the enquiries (not editable) in a continuous form view with the header field also having text boxes which filter the data (ie searching for Last Name etc). The rest of the form to show all the details (editable) of the enquiry selected in the subform.
I have managed to do the first subform which works on its own but will not filter when it is a subform of a main form. Or it will filter the whole "Main" form results but not filter the list of results on the subform.
Dim szLastName As String, szCrit As String
szLastName = "*" & Nz(Me!LastName, "") & "*"
szCrit = BuildCriteria("LastName", dbText, szLastName)
DoCmd.ApplyFilter , szCrit
As I am learning as I go along here, I would mainly like some advice of the best ways of doing this, Im not looking for full coded solutions.
Thanks in advance,
Tom
I am fairly new to access tho I have a fair bit of experience with VBA in excel. I am wanting (amongst other things!) to design a form with a subform on it to show certain business enquiries. The subform to show all of the enquiries (not editable) in a continuous form view with the header field also having text boxes which filter the data (ie searching for Last Name etc). The rest of the form to show all the details (editable) of the enquiry selected in the subform.
I have managed to do the first subform which works on its own but will not filter when it is a subform of a main form. Or it will filter the whole "Main" form results but not filter the list of results on the subform.
Dim szLastName As String, szCrit As String
szLastName = "*" & Nz(Me!LastName, "") & "*"
szCrit = BuildCriteria("LastName", dbText, szLastName)
DoCmd.ApplyFilter , szCrit
As I am learning as I go along here, I would mainly like some advice of the best ways of doing this, Im not looking for full coded solutions.
Thanks in advance,
Tom