oraclejunior
Technical User
Dim MaxCells As Integer
Dim CellsAdded As Integer
Dim Diff As Integer
MaxCells = [Forms]![createcampaignform]![NumberOfCells]
CellsAdded = "(SELECT COUNT(celltable.[internaljobid])" & _
"FROM celltable, campaigntable" & _
"WHERE ((celltable.[internaljobid]) = [Forms]![createcampaignform]![JobID]));"
Diff = (MaxCells) - (CellsAdded)
If Diff > 0 Then
Dim CellsAdded As Integer
Dim Diff As Integer
MaxCells = [Forms]![createcampaignform]![NumberOfCells]
CellsAdded = "(SELECT COUNT(celltable.[internaljobid])" & _
"FROM celltable, campaigntable" & _
"WHERE ((celltable.[internaljobid]) = [Forms]![createcampaignform]![JobID]));"
Diff = (MaxCells) - (CellsAdded)
If Diff > 0 Then