Quantcast
Channel: Modules & VBA
Viewing all articles
Browse latest Browse all 21

Using Variables in OpenForm WHERE condition

$
0
0
Hello all,

I posted this in a comment on another thread, but have realized the issue is not completely related to the original post, so I thought I'd start a new one.

I'm working on a multi-field search form and I'm using variables for each search field to prevent my lines of code from exponentially multiplying. Here's a relevant snippet of code from the form:
Code:
Public Sub BuildSQL()
    Dim FieldWhere1 As String
 
    If Me.cboItemField1 = "TITLE" Then
        Set FieldWhere1 =...

Read more

Viewing all articles
Browse latest Browse all 21

Trending Articles