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!

Recent content by aarellano

  1. aarellano

    if statement to resolve sql depending on user id

    so I could do something like this Dim presentuserid presentuserid=rs("userid") if presentuserid=00 then strTableName="WEBSPA.WEEKLYSLS" Session("OwnerID") = Session("_" & strTableName & "_OwnerID") ' to support older events and default values strOriginalTableName="WEB.WEEKLY"...
  2. aarellano

    if statement to resolve sql depending on user id

    Hello, I have an asp page that checks the user id, then goes to an acces db to check user credentials, if the user gets authenticated, the user gets redirected to see his data only. This works well. I am trying to ad an admin user. To be able to see all the records here is what my code...
  3. aarellano

    declare a variable

    gmmastros!!!!!!!!! I don't care what anybody says!!!! YOU ROCK!!!! I ended up using your code if tbc= "3" then hrs = cDbl(runlab)/1000 elseif tbc="4" then hrs = cDbl(runlab)/10000 elseif tbc="P" then If cDbl(runlab) = 0 Then hrs = 0 Else hrs = 1/cDbl(runlab)...
  4. aarellano

    declare a variable

    so in my case it would be if tbc= "'3'" then strhrs = runlab/1000 elseif tbc="'4'" then strhrs = runlab/10000 elseif tbc="'P'" then strhrs = 1/runlab end if
  5. aarellano

    declare a variable

    no sorry that did not work my asp page load but I get no data in the hrs field
  6. aarellano

    declare a variable

    got it if tbc= "'3'" then hrs = runlab/1000 elseif tbc="'4'" then hrs = runlab/10000 elseif tbc="'P'" then hrs = 1/runlab end if
  7. aarellano

    declare a variable

    I hear you, can be a bit confusing at times. Now I get Error Type: Microsoft VBScript runtime (0x800A000D) Type mismatch myfile.asp, line 61 lines 56 through 62 56 if tbc= "3" then 57 hrs = runlab/1000 58 elseif tbc="4" then 59 hrs = runlab/10000 60 elseif tbc="P" then 61 hrs =...
  8. aarellano

    declare a variable

    thank you that works pretty well the only problem that I have is Error Type: Microsoft VBScript compilation (0x800A03EA) Syntax error /xmldata/empeff.asp, line 58, column 11 elseif tbc=&"P"& then ----------^ I believe is because an alpha character?
  9. aarellano

    declare a variable

    Hello, I have a couple of declared variables mo= rs("month") dy= rs("day") dpt= rs("dptno") tbc= rs("tbcod") runlab = rs("runlabor") what I am trying to do now is to declare a new variable with an if statement I have tried hrs = if tbc= 3 then runlab/1000 elseif tbc=4 then runlab/10000...
  10. aarellano

    error when thre is no data

    sweet!!!! Thanks a million gmmastros!!!!!!!!
  11. aarellano

    error when thre is no data

    Hello, I have an asp page that loads dynamic data from one of my servers. In the morning when there is no data in the file when I call my asp page I get the following error Error Type: ADODB.Recordset (0x800A0BCD) Either BOF or EOF is True, or the current record has been deleted. Requested...
  12. aarellano

    Create Date and Last Open Date

    Hello, I am triying to insert a create date in a form when the form is created and a open date when the form was last oppened. I have tried Date() but it changes everytime to the current date. Any suggestions are greatly appreciated!!!!
  13. aarellano

    Populating XML with ASP

    glad to help!! cheers!!
  14. aarellano

    if statement

    that is awsome!!! thank you so very, very much!!! I really appreciate the help. I used monthName that did the trick. But in the process I learned functions!!!!! thanks!!!! I am building a dashboard in adobe flex and the most inexpensive fastest way to get the data out of my db to xml was...

Part and Inventory Search

Back
Top