hi,<BR>i ve gota function which creates database connection.this function doesnt return any value. and i have stored it in a .inc file. Now when i wish to call the function in the asp code i have to call using a variable nae. i cannot call it directly<BR>e.g the code is<BR>Function GetDBConn(Conn)<BR>On error resume next<BR>Set Conn=Server.CreateObject("ADODB.Connection")<BR>&# 039set rs=server.createobject("ADODB.recordset")<BR> Conn.Open "timesheetXDSN","sa"<BR> If err.number &#060;&#062;O then<BR> GetDbConn=False<BR> Else<BR> GetDbConn=True<BR> End if<BR>End function<BR><BR>and when i call it in my asp age i have to explicitly say varname=getbdconn<BR>other wise it doesnt work<BR>is it coz of the if else loop???<BR>