startdate=thisform.text1.value enddate=thisform.text2.value **** INSERT INTO newafm ; SELECT * FROM allbook1.account1 NOT IN (SELECT char4 FROM afm) ex...where allbbok1.dat between startdate and enddate4.table newafm ,field(char4) have data as llp3256987 and 0652147
use newafm set filter val(char4)>05.i need to get 2401 randomly records from newafm,insert it at table(dncc)
USE newafm total = "2401" RAND(-1) INDEX ON RAND() TO SYS(2023)+'\RANDOM' COPY TO dncc NEXT &total SET INDEX TO ERASE SYS(2023)+'\RANDOM' CLEAR EVENTS ELSE =MESSAGEBOX("no file/ or data") ENDIFthank you.
* Here is the do while for the random ordered date range file >USE RandomDateRangeTable >go top >do while !EOF >* Heres where I get lost >locate "?what?" in allbook >do WhatWithAllbook("?What?") && A function to process the lookup results >skip >enddo>
>>thisform.text1.value=startdate >>thisform.text2.value=enddate >>>>*i need to enclude this code
>>INSERT INTO dncc ; &&RANDOMLY 2401 RECORDS BETWEEN 2 DATE >>SELECT * FROM afm char3 NOT IN (SELECT account FROM allbook1) >>----------------------------- >> >>USE afm >>total = "2401" >>RAND(-1) >>INDEX ON RAND() TO SYS(2023)+'\RANDOM' >>COPY TO dncc NEXT &total >>SET INDEX TO >>ERASE SYS(2023)+'\RANDOM' >> CLEAR EVENTS >>ELSE >> =MESSAGEBOX("no file/ or data") >>ENDIF >>>>