Hi there!
This should be an easy question. The billingperiods are stored in the table 'billingperiod' containing three columns: 'month', 'fromdate' and 'todate'.
After update of a textbox called "navn", I want the 'fromdate' of the month 'july' displayed in Tekst18.
This is my code:
But my SQL-sentence doesn't seem to run at all. I've tried writing DoCmd.RunSQL after the SQL-sentence. But that doesn't make it work... Is there another command I have to use instead???
// JR
This should be an easy question. The billingperiods are stored in the table 'billingperiod' containing three columns: 'month', 'fromdate' and 'todate'.
After update of a textbox called "navn", I want the 'fromdate' of the month 'july' displayed in Tekst18.
This is my code:
Code:
Private Sub navn_AfterUpdate()
strSQL = "SELECT * FROM billingperiod WHERE month = 'july'"
Me.Tekst18 = fromdate
End Sub
But my SQL-sentence doesn't seem to run at all. I've tried writing DoCmd.RunSQL after the SQL-sentence. But that doesn't make it work... Is there another command I have to use instead???
// JR