Hi
I am beginner in the access project.
can anyone suggest how to deal with this
" Set rq = Db.CreateQueryD ef("r_temp_rslt _research", strSql)"
in the below code.As its a MDB application which needs to be converted into ADP.
Any kind of help would be highly appreciated.
Below is the snippet of code:
Many Thanks
Rahul
I am beginner in the access project.
can anyone suggest how to deal with this
" Set rq = Db.CreateQueryD ef("r_temp_rslt _research", strSql)"
in the below code.As its a MDB application which needs to be converted into ADP.
Any kind of help would be highly appreciated.
Below is the snippet of code:
Code:
Dim Db As DAO.Database
Dim rq As DAO.QueryDef
Dim strSql As String
Dim fResearch As Form
If IsOpen("f_research") Then
Set fResearch = Forms!f_research
With fResearch
.Refresh
strSql = .lst_result_research.RowSource
'Supprime la requête r_temp_rslt_research avant de la recréer
On Error Resume Next
DoCmd.DeleteObject acQuery, "r_temp_rslt_research"
On Error GoTo 0
Set Db = CurrentDb()
Set rq = Db.CreateQueryDef("r_temp_rslt_research", strSql)
rq.Close
Set rq = Nothing
Set Db = Nothing
.txt_tot_list_fees = Nz(DSum("listing_fees_amount", "r_temp_rslt_research"), 0)
.txt_tot_cust_act = Nz(DSum("activity_cost", "r_temp_rslt_research"), 0)
.txt_tot_free_goods = Nz(DSum("free_goods_tot", "r_temp_rslt_research"), 0)
.txt_tot_price_off = Nz(DSum("price_off_tot", "r_temp_rslt_research"), 0)
.txt_tot_list_fees_bal = Nz(DSum("list_fees_bal_diff_0", "r_temp_rslt_research"), 0)
.txt_tot_cust_act_bal = Nz(DSum("cust_act_bal_diff_0", "r_temp_rslt_research"), 0)
.txt_tot_price_off_bal = Nz(DSum("price_off_bal_diff_0", "r_temp_rslt_research"), 0)
End With
End If
Set fResearch = Nothing
Rahul
Comment