vb.net - (VB / ACCESS / CR) Filter VB Crystal Report based on Access Form -


before question, here overview of going on.

access

a form has combobox selects jobid

crystal reports

a report calls info several tables, based on jobid

vb

a form (using crystal reports plug-in) shows report outside of crystal reports designer app.

my problem

i need report displayed in vb filtered job chosen in access combobox.

update

i have database linked vs2012, , works fine without issues. can pull info table easily. need link combobox from access form to vs2012 filter report.

i hope makes question clearer.

update 2

i able figure out how create select query based on value of combobox inside of access, should able use access value looking for, still need know how use value filter cr...

one possible solution create saved select query in access replicates query in cr, , name query [jobreport_base]. then, create saved select query in access , name [jobreport_current]. add code access form updates .sql property of [jobreport_current] query return records selected [jobid], like

dim qdf dao.querydef set qdf = currentdb.querydefs("jobreport_current") qdf.sql = "select * jobreport_base jobid = " & cbxjobid set qdf = nothing 

then update crystal report pull data [jobreport_current] query instead of individual tables.


Comments

Popular posts from this blog

java - JavaFX 2 slider labelFormatter not being used -

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -