Access Tables from a Form for calculations

JimMiller

Registered User.
Local time
Today, 19:54
Joined
Oct 22, 2001
Messages
18
I am trying to access fields in a table from a Form's VBA code. I am having trouble with the syntax for accessing tables. Here is what I have coded so far:

If IsNull(
![Issues]![RevisedEstHours]) = False Then
![Issues]![RemainingHours] =
![Issues]![RevisedEstHours] - (DSum("[NumberHours]", "[IssueAllocation]", "NASIssueNumber = " & [Forms]![ProjectTrack]![NASIssueNumber]))
Else
![Issues]![RemainingHours] =
![Issues]![EstimatedHours] - (DSum("[NumberHours]", "[IssueAllocation]", "NASIssueNumber = " & [Forms]![ProjectTrack]![NASIssueNumber]))
End If

Anyone have any ideas why it is not working?
 

Users who are viewing this thread

Back
Top Bottom