i use DSum to calculate subtotal Telephone service. By putting GuestID, it will be showed subtotal of telephone service
everything works fine. the problem is when data is empty, it is showing error mesage " runtime error 3075
syntax error (missing operator query in query expression "[GuestID]="
Here is my Dsum
Dim subtotal As Currency
subtotal = DSum("[TotalBiayaTelephone]", "Telephone_Service_record", "[GuestID] = " & Me.GuestID & "")
If Not IsNull(subtotal) Then Me!subtotal1 = subtotal
End Sub
everything works fine. the problem is when data is empty, it is showing error mesage " runtime error 3075
syntax error (missing operator query in query expression "[GuestID]="
Here is my Dsum
Dim subtotal As Currency
subtotal = DSum("[TotalBiayaTelephone]", "Telephone_Service_record", "[GuestID] = " & Me.GuestID & "")
If Not IsNull(subtotal) Then Me!subtotal1 = subtotal
End Sub