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 wOOdy-Soft 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 drctx

  1. drctx

    Using - System.Security.Principal.WindowsIdentity.GetCurrent.Name()

    Request.ServerVariables("AUTH_USER").ToString()
  2. drctx

    use variable name to set textbox readonly

    thank you very much! that made my day!
  3. drctx

    use variable name to set textbox readonly

    i've been stuck on this problem all day. how can i use a variable name to set several textboxes to readonly? While MyDataReader.Read if MyDataReader.Item("FieldType") Is System.DBNull.Value then ' do nothing else if MyDataReader.Item("FieldType") = "Hidden" then...
  4. drctx

    reference a control by a variable

    Page.FindControl worked. thanks.
  5. drctx

    reference a control by a variable

    in vb i could use code like this to get the field name from a database table and then hide the textbox with the same name. if rs("FieldName") = "hidden" then me("txt" & rs("FieldName")).visible = false end if but in asp.net using vb.net i can figure it out. the code below gives the error...
  6. drctx

    Importing a text file that exceeds the column limit in Access

    you might try this link. http://support.microsoft.com/default.aspx?scid=kb;en-us;872914 i had a problem importing a file, once it fixed the file i could import it and create the import spec. after i had the import spec i don't need to fix the file every time it's imported.
  7. drctx

    Get specific record in table (not first location)...

    you could use the dlookup function and replace all your code with this: FindSalesAdmin = DLookup("Initials", "tbl_SalesAdmin", _ "SalesNameFIELD = SalesAdminID") or change your select statement to have WHERE. LSQL = "select Initials from tbl_SalesAdmin WHEERE SalesNameFIELD =...
  8. drctx

    Calling a query from vba code behind a button

    this would do it: DoCmd.SetWarnings False DoCmd.OpenQuery "QueryName1" DoCmd.OpenQuery "QueryName2" DoCmd.SetWarnings True DoCmd.OpenTable "TableName
  9. drctx

    Check if a MS Office Document is Password Protected

    you got me on the right track and i figured it out. i opened the word file and used "000" as the passwords since this is the incorrect password it gives error number 5408. Dim oWRDA As Word.Application Dim oWRDD As Word.Document Dim wordFilePath As String...
  10. drctx

    Check if a MS Office Document is Password Protected

    thanks for the help. i ran the code below and word asks for the password, if i enter the password i get the message "Word file is not password protected!", if i click cancel to the password box i get "Word file is password protected!". if the file is modify password protected then i get...
  11. drctx

    Check if a MS Office Document is Password Protected

    has anyone else tried this code? i tried it and it tells me every word document is password protected. is there something that needs to be changed or is there another way to check if a word document has is password protected?
  12. drctx

    random number generator without resampling

    MichaelRed, very cool bit of code, works great. thanks doug
  13. drctx

    Help needed for using max and mid functions in MS Access

    you can convert the expression to an integer like this. Max(CInt(Mid([MyField],6)))
  14. drctx

    excel formating problem? enter 1 displays 100

    the fixed decimal places was it. thanks for the help.
  15. drctx

    excel formating problem? enter 1 displays 100

    if i type 1 in a cell it changes to 100. it's like it's formatted for percentage but doesn't show the % sign. i've formatted it to be number and general but it still displays 100. does anyone know what would cause this? thanks.

Part and Inventory Search

Back
Top