Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Alias not currently opened . . .

Status
Not open for further replies.

Rick4077

Technical User
Oct 19, 2004
149
US
I give up.

Error is "Alias is not currently opened. Table Working:ScmlsNormalize.db
Alias Working Table ::ScmlsNormalize.db"

Code:
method pushButton(var eventInfo Event)
var;----------------Declare Variables-------------
Scmls, ScmlsNormalize		table
qbe								query
endVar;-------------End Variable List-------------
;-------------------------------------------------
addAlias("Standard","D:\\Pdoxwin\\Working")
;-------------------------------------------------

qbe=Query

:Working:ScmlsNormalize.db | UID | NormalizedOfficeName |
                           | _ID      | _Name |

:Working:Scmls.db  | ListID | ListName |
                   | _ID    | changeto _Name  |

endquery
	if not qbe.executeQbe()then
errorShow()
	return
	endif

qbe=Query

:Working:ScmlsNormalize.db | UID | NormalizedOfficeName |
                           | _ID | _Name |

:Working:Scmls.db  		   | SellID | SellName |
								   | _ID    | changeto _Name |

endquery
	if not qbe.executeQbe()then
errorShow()
	return
	endif

endMethod

 
Okay . . . I fixed it by removing

:Working:

BUT WHY did this cause a problem?

The paths and all were still correct.

Rick
 
Rick,

The second attempt may have worked because ScmlsNormalize.db and Scmls.db are in your Paradox default Working directory and therefore can be referenced without an alias.

As to the initial code failing. I presume that the directory D:\Pdoxwin\Working exists and is where the tables for the query are located. This being the case then the only problem I think is in the syntax used for addAlias. I believe it should be

addAlias("Working","Standard","D:\\Pdoxwin\\Working")rather than the addAlias("Standard","D:\\Pdoxwin\\Working") which you posted above as this does not actually give a name for the alias.

I hope that this helps.

Regards

Bystander

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top