Function fGetCost(iDate As Date, iTime As Date, iDuration As Integer) As Double
Dim Week As Integer
Week = Weekday([iDate], 2)
If (Week = 6) Or (Week = 7) Then
Select Case iTime
Case #7:00:00 AM# To #8:49:59 AM
If iDuration = 15 Then
Cost = 33
ElseIf iDuration = 30...
I don't have any criteria that limits the number of records. This is my function. There's nothing wrong is there?
Function fGetCost(iDate As Date, iTime As Date, iDuration As Integer) As Double
Dim Week As Integer
Week = Weekday([iDate], 2)
If (Week = 6) Or (Week = 7) Then
Select Case...
I have a function that I made in Modules called modFunc...
fGetCost([Date],[Time],[Duration])
This function results in indicating a Cost according to Date, Time and Duration.
I need to update ALL RECORDS using this function.
Is there a way of applying this function using update query to...
I'm not sure how to do it with a function.
I tried putting in fGetCost([Date],[Time],[Duration]) in a field, but that only updated one record, not all.
I have a function...
fGetCost([Date],[Time],[Duration])
This function results in indicating a Cost according to Date, Time and Duration.
I need to update ALL RECORDS using this function.
Is there a way of applying this function using update query to update all records in my table?
The code I have is this:
Select Case Me![Time]
Case #7:00:00 AM# To #8:49:59 AM#
If Duration = 15 Then
Cost = 33
ElseIf Duration = 30 Then
Cost = 55
ElseIf Duration = 45 Then
Cost...
It's not a simple formula.
The code I have is this:
Select Case Me![Time]
Case #7:00:00 AM# To #8:49:59 AM#
If Duration = 15 Then
Cost = 33
ElseIf Duration = 30 Then
Cost = 55
ElseIf Duration =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.