Form Name: frmTest with textboxA
Query Name: qryTest with field : fldA, fldB, fldC
My current VBA coding as below :-
A) For FORM
Private Sub cmdA_Click()
DoCmd.OpenQuery "qryTest"
End Sub
B) For Query
fldA with criteria written as : textboxA
I believe the root cause of the problem come from (B). I have tried VBA code in query with criteria written as [frmTest]![textboxA] for fldA, but it still doesn't work.
How to pass the texboxA value to fldA so that query ONLY display the relevant data base on the textboxA value ?
Anyone solution out there?
Query Name: qryTest with field : fldA, fldB, fldC
My current VBA coding as below :-
A) For FORM
Private Sub cmdA_Click()
DoCmd.OpenQuery "qryTest"
End Sub
B) For Query
fldA with criteria written as : textboxA
I believe the root cause of the problem come from (B). I have tried VBA code in query with criteria written as [frmTest]![textboxA] for fldA, but it still doesn't work.
How to pass the texboxA value to fldA so that query ONLY display the relevant data base on the textboxA value ?
Anyone solution out there?
Last edited: