A
anil
hi all
i have written vba code to generate random sites using query from 2
tables.u can see code in "output of immediate window in report".I have
been able to get output in report via append query through temp table.
There are 2 tables -town and sites.town has many sites.From each
town(say A) we need to select samplesites(say 2) from fixed number of
sites(say15).The output looks like:
TOWN SITECODE SITE ADDRESS
A a1 a street,A
A a2 a2 street,A
B b1 b street,B
B b2 b1 street,B
B b3 b3 ave,B
Now the problem is : before entering the data in temp table i need to
compare the data with last one already in the table.that is i should
not get that data which is already in the temp table.
Someone told me that use the checkbox in main table so that when we
append those fields in new table it gets checked and we can use it as
filter.
but i don't have much idea of code.can u please refer some code if
already discussed.if not can u give me please some idea how to do.
thanks
anil
i have written vba code to generate random sites using query from 2
tables.u can see code in "output of immediate window in report".I have
been able to get output in report via append query through temp table.
There are 2 tables -town and sites.town has many sites.From each
town(say A) we need to select samplesites(say 2) from fixed number of
sites(say15).The output looks like:
TOWN SITECODE SITE ADDRESS
A a1 a street,A
A a2 a2 street,A
B b1 b street,B
B b2 b1 street,B
B b3 b3 ave,B
Now the problem is : before entering the data in temp table i need to
compare the data with last one already in the table.that is i should
not get that data which is already in the temp table.
Someone told me that use the checkbox in main table so that when we
append those fields in new table it gets checked and we can use it as
filter.
but i don't have much idea of code.can u please refer some code if
already discussed.if not can u give me please some idea how to do.
thanks
anil