Hi
I am struggled with modules so I need one field not multiple fields.
i.e.
AME00USD1
AME10USD1
AME20USD1
AUS00AUD1
AUS00USD1
AUS00USD1 - how to delete?
AUS00USD1 - how to delete?
AUS10AUS2
...
...
I wrote the modules. Here it is:
'WORLD - AMEUKEXXXXXP
Set rsStruc = dbStruc.OpenRecordset("AMEUKEXXPPP", dbOpenSnapshot)
rsStruc.MoveFirst
Do Until rsStruc.EOF
strBU = Right(rsStruc.Fields("BUSINESS_UNIT", 3)
strBUDesc = rsStruc.Fields("Bu ShortDesc"
strCCC = rsStruc.Fields("CURCODE"
strP = rsStruc.Fields("PRACTICE"
strPDesc = rsStruc.Fields("DESCRIPTION"
'NAME - WORLD
strEnt = strBU & "XX" & strCCC & strP
strEnt2 = strBU & "XXUSD" & strP
strEntDesc = strBUDesc & " " & strPDesc
If strEnt1 <> strEnt And strP <> 0 Then Print #intName, strEnt & "!" & strEntDesc & "!" & strBU & strP & strNameEnd & strCCC & strNameEnd1
If strEnt1 <> strEnt And strP = 0 Then Print #intName, strEnt & "!" & strEntDesc & "!" & strBU & strP & strNameEnd & strCCC & strNameEnd1
If strEnt <> strEnt2 And strP <> 0 Then Print #intName, strEnt2 & "!" & strEntDesc & "!" & strBU & strP & " ! !USD !0! ! ! ! !CHART! ! ! !CHART"
If strEnt <> strEnt2 And strP = 0 Then Print #intName, strEnt2 & "!" & strEntDesc & "!" & strBU & strP & " ! !USD !0! ! ! ! !CHART! ! ! !CHART"
'OWNER - WORLD
If strEnt1 <> strEnt And strP <> 0 Then Print #intOwn, strBU & strLOC & "!" & strEnt & strOwnEnd
If strEnt <> strEnt2 And strP <> 0 Then Print #intOwn, strBU & strLOC & "!" & strEnt2 & strOwnEnd
strEnt1 = strEnt
strEnt = strEnt2
rsStruc.MoveNext
Loop
rsStruc.Close
If you know how to do, I really appreciate your help.
Thanks,
CHsu [sig][/sig]
I am struggled with modules so I need one field not multiple fields.
i.e.
AME00USD1
AME10USD1
AME20USD1
AUS00AUD1
AUS00USD1
AUS00USD1 - how to delete?
AUS00USD1 - how to delete?
AUS10AUS2
...
...
I wrote the modules. Here it is:
'WORLD - AMEUKEXXXXXP
Set rsStruc = dbStruc.OpenRecordset("AMEUKEXXPPP", dbOpenSnapshot)
rsStruc.MoveFirst
Do Until rsStruc.EOF
strBU = Right(rsStruc.Fields("BUSINESS_UNIT", 3)
strBUDesc = rsStruc.Fields("Bu ShortDesc"
strCCC = rsStruc.Fields("CURCODE"
strP = rsStruc.Fields("PRACTICE"
strPDesc = rsStruc.Fields("DESCRIPTION"
'NAME - WORLD
strEnt = strBU & "XX" & strCCC & strP
strEnt2 = strBU & "XXUSD" & strP
strEntDesc = strBUDesc & " " & strPDesc
If strEnt1 <> strEnt And strP <> 0 Then Print #intName, strEnt & "!" & strEntDesc & "!" & strBU & strP & strNameEnd & strCCC & strNameEnd1
If strEnt1 <> strEnt And strP = 0 Then Print #intName, strEnt & "!" & strEntDesc & "!" & strBU & strP & strNameEnd & strCCC & strNameEnd1
If strEnt <> strEnt2 And strP <> 0 Then Print #intName, strEnt2 & "!" & strEntDesc & "!" & strBU & strP & " ! !USD !0! ! ! ! !CHART! ! ! !CHART"
If strEnt <> strEnt2 And strP = 0 Then Print #intName, strEnt2 & "!" & strEntDesc & "!" & strBU & strP & " ! !USD !0! ! ! ! !CHART! ! ! !CHART"
'OWNER - WORLD
If strEnt1 <> strEnt And strP <> 0 Then Print #intOwn, strBU & strLOC & "!" & strEnt & strOwnEnd
If strEnt <> strEnt2 And strP <> 0 Then Print #intOwn, strBU & strLOC & "!" & strEnt2 & strOwnEnd
strEnt1 = strEnt
strEnt = strEnt2
rsStruc.MoveNext
Loop
rsStruc.Close
If you know how to do, I really appreciate your help.
Thanks,
CHsu [sig][/sig]