tomtom1126
Registered User.
- Local time
- Tomorrow, 06:55
- Joined
- Aug 11, 2015
- Messages
- 27
I need help to crate the vba as below:
query name : qrycost
field in query : sccd
report name:
1. rptcosthkg_a / 2. rptcosthkg_b / 3. rptcostszp_a / 4. rptcostszp_b
if sccd like "HKG" then
open report 1. rptcosthkg_a
else
open report 2. rptosthkg_b
if sccd like "SZP" then
open report 3. rptcostszp_a
else
open report 4. rptcostszp_b
end
thanks so much for your great help
Tom
query name : qrycost
field in query : sccd
report name:
1. rptcosthkg_a / 2. rptcosthkg_b / 3. rptcostszp_a / 4. rptcostszp_b
if sccd like "HKG" then
open report 1. rptcosthkg_a
else
open report 2. rptosthkg_b
if sccd like "SZP" then
open report 3. rptcostszp_a
else
open report 4. rptcostszp_b
end
thanks so much for your great help
Tom