Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a problem trying to insert user input values in a where statement, the
user provides the data via a userform. numonth and nuyear are populated, i them want to add these to the where statement as below - Dim numonth As String 'numonth = 05 Dim nuyear As String 'nuyear = 5 "WHERE (VinstCoreData.ResDate= 50501 And VinstCoreData.ResDate<= 50531) AND (VinstCoreData.PRG Like '%MOTIS%')" _ How can I insert the numonth and nuyear into the where statement??? Any ideas? Thanks, Andrew. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Declare variables to a code? | Excel Discussion (Misc queries) | |||
Inserting variables within file names | Excel Worksheet Functions | |||
Inserting and Formating Variables in a Header using a macro | Excel Discussion (Misc queries) | |||
Variables in VB Code | Excel Programming | |||
Pass Variables into Form's code | Excel Programming |