mloucel
Member
- Local time
- Today, 15:50
- Joined
- Aug 5, 2020
- Messages
- 309
Hello ALL:
I am using a form that I've been able to use thanks to @arnelgp in 2 different routines, works perfect, but I have an issue now..
I created a Query and I base the form on that Query.
- When the form opens with 1 of the menus, it works like a charm.
- When is opened on the second menu it works but I detected an issue.
I need to get rid of the WHERE clause, so that it displays ALL the records, no matter what, I found this thread here:
WAF Link
and followed the example @arnelgp provides in answer #3, seemed the most obvious for my specific case, so I did this:
1 Dim a variable strFilter as String
2 create the following SQL statement:
3 Apply the code:
All of the above from 1 to 3 is done in Form_Load
but Nothing happens..
What am I doing wrong?
Maurice..
I am using a form that I've been able to use thanks to @arnelgp in 2 different routines, works perfect, but I have an issue now..
I created a Query and I base the form on that Query.
Code:
SELECT PatientT.PatientID, PatientT.PLastName, PatientT.PFirstName, PatientT.PDOB, PatientT.PPhone, PatientT.PDeseaced
FROM PatientT
WHERE (((PatientT.PDeseaced)=False))
ORDER BY PatientT.PLastName;
- When the form opens with 1 of the menus, it works like a charm.
- When is opened on the second menu it works but I detected an issue.
I need to get rid of the WHERE clause, so that it displays ALL the records, no matter what, I found this thread here:
WAF Link
and followed the example @arnelgp provides in answer #3, seemed the most obvious for my specific case, so I did this:
1 Dim a variable strFilter as String
2 create the following SQL statement:
Code:
strFilter = "SELECT PatientID, PLastName, PFirstName, PDOB, PPhone, PDeseaced FROM [PatientT] ORDER BY PLastName;"
Code:
Me.RecordSource = strFilter
All of the above from 1 to 3 is done in Form_Load
but Nothing happens..
What am I doing wrong?
Maurice..