Hi.
I have a function that runs a SQL SCRIPT to calculate a value from two other scripts:
Public Function sql_risk_rating()
Dim sql1 As String
sql1 = "SELECT qry_cf_value.device, [cm_value]*[cf_value] AS Risk_value" & _
"FROM qry_cf_value INNER JOIN qry_cm_value ON qry_cf_value.device = qry_cm_value.device" & _
"WHERE (((qry_cf_value.device)=[Forms]![frm_device_main]![txt_uid]));"
End Function
.........Easy enough.
Now, I want the value for this to show in a text box (unbound) against the specified item shown (current record).
COuld anybody give advice on this?
MAny thanks.
I have a function that runs a SQL SCRIPT to calculate a value from two other scripts:
Public Function sql_risk_rating()
Dim sql1 As String
sql1 = "SELECT qry_cf_value.device, [cm_value]*[cf_value] AS Risk_value" & _
"FROM qry_cf_value INNER JOIN qry_cm_value ON qry_cf_value.device = qry_cm_value.device" & _
"WHERE (((qry_cf_value.device)=[Forms]![frm_device_main]![txt_uid]));"
End Function
.........Easy enough.
Now, I want the value for this to show in a text box (unbound) against the specified item shown (current record).
COuld anybody give advice on this?
MAny thanks.