gusbrunston
Programmer
I'm trying to "autopopulate" a field with a calculated long integer based on the value entered in the previous control:
(the following is in "pigeon basic"!)
Assume there are already TenantID's 3246001 and 3246002
Field 1: PropertyID = 3246
Field 2: TenantID = 3246003
Do you think this will work? Can you help me code it, do I use a variable, requery, etc.? (It's a long way from MBasic.)
Thanks a bunch in advance.
Gus Brunston
An old PICKer
padregus@home.com
(the following is in "pigeon basic"!)
Assume there are already TenantID's 3246001 and 3246002
Field 1: PropertyID = 3246
Code:
TenantID = (PropertyID * 1000) + 1
LOOP
IF TenantID is a duplicate THEN
TenantID = TenantID + 1
ELSE
Exit Loop
END IF
REPEAT
Do you think this will work? Can you help me code it, do I use a variable, requery, etc.? (It's a long way from MBasic.)
Thanks a bunch in advance.
Gus Brunston
An old PICKer
padregus@home.com