Figured it out... Stupid quotes!!! I was missing the ' on the second query criteria... Thanks colintis, that was a helpful troubleshooting technique. I'm a newby (I'm sure it's obvious) at VBA...
Thanks!
User Profile
Collapse
-
Here's the SQL lines:
sql = "SELECT Membership_Cred it_Table.FILING _STATE, Membership_Cred it_Table.Member ship, Membership_Cred it_Table.Member ship_Rate FROM Membership_Cred it_Table WHERE (((Membership_C redit_Table.FIL ING_STATE)='" & [Forms]![Credit_Debit_OC C_Form]![Filing_State] & "' ) AND ((Membership_Cr edit_Table.Memb ership)=" & [Forms]![Credit_Debit_OC C_Form]![OCC_ADA_Combo] &...Leave a comment:
-
Error: No Current Record
I'm running into a problem with running multiple queries. I have two tables that look like:
Risk_Mgmt_Table
Fields: (Values)
Filing_State: (CA)
Membership: (Yes)
Membership_Rate : (.95)
Filing_State: (CA)
Membership: (No)
Membership_Rate : (1)
When I run the query, I get the error "No Current Record" when "No" is selected from a combo box. My code... -
-
Populate text box from Variable
I have a global variable that I need to populate a text box with. The message box comes up with the correct variable, but I'm not sure how to populate my "RiskFactor_Txt " textbox. I have tried several variations to the "Forms!xxxx " statement without success.
...Code:Private Sub Form_Load() Dim TestMsg As Double TestMsg = Me.OpenArgs MsgBox TestMsg, vbOKOnly, "Test -
-
How to pass a variable in one form to a variable in another form?
I'm trying to pass the "ADA_Member_Fac tor" variable from on form to another. The first form that puts a value in the variable is below:
...Code:Option Compare Database Dim ADA_Member_Factor As Double Dim final_amount As Currency '---------------- ^is in the General Dec's section----' Private Sub Calc_Final_Rate_Btn_Click() On Error GoTo Err_Calc_Final_Rate_Btn_Click
No activity results to display
Show More
Leave a comment: