J
JWHData
The current queries (which used to run which seems unbelievable now) utilizes
1 data table (Daily) containing 1 Data Element (F1) which is set to Text 255
Here is a sample data values:
F1
Suncor 103 Edson 10-13-53-15_EMKTC_20080825_DayCost.PDF
Here are the 2 Query values that produce errors (Invalid Procedure Call)
Well: Mid([F1],1,(InStr(1,[F1],"2008")-8))
R_Key: Mid([F1],(InStr(1,[F1],"2008")-6),5)
If I make a slight change to each query I obtain results
Well: Mid([F1],1,(InStr(1,[F1],"2008")))
R_Key: Mid([F1],(InStr(1,[F1],"2008")),5)
Well R_Key
Suncor 103 Edson 10-13-53-15_EMKTC_2 20080
Also if I add the following 2 values to the query I get results
F2: InStr(1,[F1],"2008")-8
F3: InStr(1,[F1],"2008")-6
Well R_Key F2 F3
Suncor 103 Edson 10-13-53-15_EMKTC_2 20080 28 30
1 data table (Daily) containing 1 Data Element (F1) which is set to Text 255
Here is a sample data values:
F1
Suncor 103 Edson 10-13-53-15_EMKTC_20080825_DayCost.PDF
Here are the 2 Query values that produce errors (Invalid Procedure Call)
Well: Mid([F1],1,(InStr(1,[F1],"2008")-8))
R_Key: Mid([F1],(InStr(1,[F1],"2008")-6),5)
If I make a slight change to each query I obtain results
Well: Mid([F1],1,(InStr(1,[F1],"2008")))
R_Key: Mid([F1],(InStr(1,[F1],"2008")),5)
Well R_Key
Suncor 103 Edson 10-13-53-15_EMKTC_2 20080
Also if I add the following 2 values to the query I get results
F2: InStr(1,[F1],"2008")-8
F3: InStr(1,[F1],"2008")-6
Well R_Key F2 F3
Suncor 103 Edson 10-13-53-15_EMKTC_2 20080 28 30