vba - Access 2013 - Visual Basic issue -


i experiencing issue access 2013 while creating vba code button. button open form using: docmd.openform command implement while condition filters form going opened.

i have 2 fields on current form with: - start date - end data

the while condition must filter records column "date" between 2 given dates in previous form. this:

where date >= me.begin_date.value , date <= me.eind_date.value 

i cant figure out use in while condition of vba code. can other things filters in vba like:

search_filter = "itemid '*" & me.search_bar.value & "*' " docmd.openform "#3 search-result", acnormal, , search_filter 

but want have first code sample, translated vba code above piece of code.

how can achieve this?

sorry bad english btw.

if recall correctly;

generate query based on 2 values (in query builer do) forms!formname.recordsource = sql query here


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -