neeeeeeeeeek
20-04-2005, 10:47
Some Monkey I work with is having problems with an access database. Obviously someone with my vast knowledge could help him but I thought I would give you peasants a chance.
:D
Dim Msg As String
Dim Title As String
Dim Defvalue As String
Dim Answer As String
Msg = "FILTER BY"
Title = "FILTER"
Defvalue = "***"
Answer = InputBox(Msg, Title, Defvalue)
If Answer <> "" Then
DoCmd.OpenForm "TESTFORM", , , "[FIELD1]='" & Answer & "' "
Else
DoCmd.OpenForm "TESTFORM"
End If
End Sub
The above string filters data into a form - I want to add a second string that does not require a user input for example
The form will ask for a FILTER - i will input 001, i then want it to also filter FIELD 2 = 0
Come on Joe, I sense you are the man for this.
Cheers people.
:D
Dim Msg As String
Dim Title As String
Dim Defvalue As String
Dim Answer As String
Msg = "FILTER BY"
Title = "FILTER"
Defvalue = "***"
Answer = InputBox(Msg, Title, Defvalue)
If Answer <> "" Then
DoCmd.OpenForm "TESTFORM", , , "[FIELD1]='" & Answer & "' "
Else
DoCmd.OpenForm "TESTFORM"
End If
End Sub
The above string filters data into a form - I want to add a second string that does not require a user input for example
The form will ask for a FILTER - i will input 001, i then want it to also filter FIELD 2 = 0
Come on Joe, I sense you are the man for this.
Cheers people.