M
Masoud
Hello, I have main form, when i clicked on the each button it will execute
the code as below and open another form (frmisometricA/G) with the filtering
like below. Now i want that nobody can remove filter on the opened form and
just possible filtering more on the opened form and when they remove filter
it shows the records like when at fist will be open not all the records. My
query for opened form is like below.
My code:
Private Sub Ctl100_Click()
Dim strfilter As String
strfilter = Me.ActiveControl.Name
DoCmd.OpenForm "frmisometricA/G", 3, , "[UNIT No] LIKE '" &
Me.ActiveControl.Name & "*'"
DoCmd.Maximize
End Sub
------------------------------------------------------------------------------
My query for opened form "frmisometricA/G";
SELECT DISTINCTROW qryisometricfilename.hypersort,
qryisometricfilename.hyper, qryisometricfilename.[Unit No],
qryisometricfilename.[Line Size], qryisometricfilename.[Fluid Code],
qryisometricfilename.[Unit No Iso], qryisometricfilename.[Pipe Sequence No],
qryisometricfilename.[Piping Class], qryisometricfilename.[Insulation Code],
qryisometricfilename.[Total Sheet No], qryisometricfilename.[Issue Date],
qryisometricfilename.[MaxOfIsometric Drawing Rev],
qryisometricfilename.[MaxOfIsometric Drawing List Rev],
qryisometricfilename.[Issued For], qryisometricfilename.Remark,
qryisometricfilename.[DOC No], qryisometricfilename.[line No]
FROM qryisometricfilename
WHERE (((qryisometricfilename.[DOC No]) Like "*001" Or
(qryisometricfilename.[DOC No]) Like "*003"))
ORDER BY qryisometricfilename.hypersort, qryisometricfilename.hyper,
qryisometricfilename.[Unit No], qryisometricfilename.[Line Size],
qryisometricfilename.[Fluid Code], qryisometricfilename.[Unit No Iso],
qryisometricfilename.[Pipe Sequence No], qryisometricfilename.[Piping Class],
qryisometricfilename.[Insulation Code];
Thanks in advanced.
the code as below and open another form (frmisometricA/G) with the filtering
like below. Now i want that nobody can remove filter on the opened form and
just possible filtering more on the opened form and when they remove filter
it shows the records like when at fist will be open not all the records. My
query for opened form is like below.
My code:
Private Sub Ctl100_Click()
Dim strfilter As String
strfilter = Me.ActiveControl.Name
DoCmd.OpenForm "frmisometricA/G", 3, , "[UNIT No] LIKE '" &
Me.ActiveControl.Name & "*'"
DoCmd.Maximize
End Sub
------------------------------------------------------------------------------
My query for opened form "frmisometricA/G";
SELECT DISTINCTROW qryisometricfilename.hypersort,
qryisometricfilename.hyper, qryisometricfilename.[Unit No],
qryisometricfilename.[Line Size], qryisometricfilename.[Fluid Code],
qryisometricfilename.[Unit No Iso], qryisometricfilename.[Pipe Sequence No],
qryisometricfilename.[Piping Class], qryisometricfilename.[Insulation Code],
qryisometricfilename.[Total Sheet No], qryisometricfilename.[Issue Date],
qryisometricfilename.[MaxOfIsometric Drawing Rev],
qryisometricfilename.[MaxOfIsometric Drawing List Rev],
qryisometricfilename.[Issued For], qryisometricfilename.Remark,
qryisometricfilename.[DOC No], qryisometricfilename.[line No]
FROM qryisometricfilename
WHERE (((qryisometricfilename.[DOC No]) Like "*001" Or
(qryisometricfilename.[DOC No]) Like "*003"))
ORDER BY qryisometricfilename.hypersort, qryisometricfilename.hyper,
qryisometricfilename.[Unit No], qryisometricfilename.[Line Size],
qryisometricfilename.[Fluid Code], qryisometricfilename.[Unit No Iso],
qryisometricfilename.[Pipe Sequence No], qryisometricfilename.[Piping Class],
qryisometricfilename.[Insulation Code];
Thanks in advanced.