Hi, I am a bit confused here, somehow I cannot see the way how I could do this.
I have a form where you can enter several numbers, then you can press on button1 or button2 which both start the same module that processes the entered data.
The button1 and button2 calculations are almost same, the only difference is that when you press button1 the module should fill another recordset in the module than when you press button2.
Below the code:
Now my question is, how can I refer to 'someBoolean' from the module to a boolean variable in the form? Is it possible to 'know' in the module which button triggered the module?
Or should I just make a invisible checkbox which registrates what button is pressed...
Cheers,
Willem
I have a form where you can enter several numbers, then you can press on button1 or button2 which both start the same module that processes the entered data.
The button1 and button2 calculations are almost same, the only difference is that when you press button1 the module should fill another recordset in the module than when you press button2.
Below the code:
Code:
If someBoolean Then
Select Case Valuta
Case "EUR"
Set rsInput = db.OpenRecordset("TotalEUR")
Case "USD"
Set rsInput = db.OpenRecordset("TotalUSD")
End Select
Else
Select Case Valuta
Case "EUR"
Set rsInput = db.OpenRecordset("QueryTotalEUR")
Case "USD"
Set rsInput = db.OpenRecordset("QueryTotalUSD")
End Select
End If
Now my question is, how can I refer to 'someBoolean' from the module to a boolean variable in the form? Is it possible to 'know' in the module which button triggered the module?
Or should I just make a invisible checkbox which registrates what button is pressed...
Cheers,
Willem