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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: gareth001
  • Content: Threads
  • Order by date
  1. gareth001

    Search and Replace email address within text file on command line

    I've a windows batch command that is being generated by an external product which inserts variables which will replace sections within a space delimeted data file. So below I'm searching for the value of "--d--" and replacing it with "email@domain.com" perl -pe "s/--d--/email@domain.com...
  2. gareth001

    Make results[i].getAttribute display a url from value

    I've got an xml file that I'm placing into a table, one field at a time with Java. I can happily place the values as string, but can't get the syntax correct to place as a URL. Simple string: document.write('<td>' + results[i].getAttribute("age") + '</td>'); Attempt at href...
  3. gareth001

    Logoff windows a nice way

    Hi All, I've got an application which I want to be able to logoff windows with. I currently use the following code: Dim MyProcess As New System.Diagnostics.Process MyProcess.StartInfo.CreateNoWindow = True MyProcess.StartInfo.UseShellExecute = True...
  4. gareth001

    Delete Defined Names

    Hi all, I'm wanting to delete all (about 60) the defined names within an excel workbook. I can delete the values of the defined names (end up with "=Sheet1!#REF!") with the below code, but not the name it's self even though I'm displaying it in the message box. For Each n In...
  5. gareth001

    Filtering Tables

    Hi, I have a working filter which uses the required field [defined as Field] and record(s) [Defined as Node] within which are needed. with the below code: Set tbl = Screen.ActiveDatasheet tbl.Filter = Field & _ "=" & _ Node tbl.FilterOn = True...
  6. gareth001

    Access - Using list box to choose field to filter on.

    Hi, I've got a table (tblQuestionnaireComments) which contains fields numbered id_0 to id_50. Within a form (frmCommentReport) there is a text box which generates this number (TxtIDNo) from a list box as the list box only contains 0 to 50. What I can not work out is how to apply a dynamic...
  7. gareth001

    Access List Box value capture

    Hi, I've been trying to set a on Change command for a group of List boxes to enable a button when they contain data, but I can't seem to detect when they contain a null value. The code is as follows: Private Sub cboSchemeID_Change() If cboLevelID.Value = Null Then...
  8. gareth001

    Converting Excel Time

    Hi, I've got a time stored in seconds (eg 150 seconds), but how can I display the time in minutes and seconds (2:30)? Excel help surgests using: =TEXT(A2/24, "h:mm") but I can't get this to work with mins and secs. Thanks Gareth
  9. gareth001

    Email failing to send

    Hi, I've tried to send an email which has an attachement of 23mb. BTInternet or Outlook does not wont to send the file which is fine as i've sent it via cd now. But when i go to try and delete the email, it tells me that it can't be deleted as Outlook has started to send it. This has also ment...
  10. gareth001

    How do i select a range of pages with a defined name?

    Hi, I've got a list of pages i want to select using VB, the list of pages is contained within a defined name ("PageSelector"). When i use this defined name to select one sheet - eg. Dim PageSelect As String PageSelect = Evaluate("PageSelector") Sheets(PageSelect).Select The...
  11. gareth001

    Urgent - How do i select a range of pages with a defined name?

    Hi, I've got a list of pages i want to select using VB, the list of pages is contained within a defined name ("PageSelector"). When i use this defined name to select one sheet - eg. Dim PageSelect As String PageSelect = Evaluate("PageSelector") Sheets(PageSelect).Select The code...
  12. gareth001

    Changing destination of a Make Table Query

    Hi, I've got a make table query which points to a certain location, but within VBA I want to be able to add a date/time stamp on the table name. How can I change the new table name on the fly (I'm creating a table in a seperate database)? I was origionally going to be using a select query and...
  13. gareth001

    Searching a String

    Hi, I'm wanting to search a string and find where the space appears within it, once found I want to take the letters before the space and populate one feild and the letters after it in another. I was hoping I could use the same function as used within Excel (Find(" ",[FeildName],1)) to find the...
  14. gareth001

    Number Suffix

    Hi, Is there anyway to automatically display the suffix to numbers, like the "th", "rd" and st without using an IF statement? Thanks for your help in advanced Gareth
  15. gareth001

    Identifying the page break in a form

    Hi, I'm trying to work out what page a form currently is on, I have two page breaks, so three pages and I want to be able to turn the Enabled property of a button off and on depending on the page being displayed. Thanks in advance Gareth
  16. gareth001

    Exporting to excel using TransferSpreadsheet

    Hi, I'm running a macro to transfer out of access into excel spreadsheets. I want to use this macro more than once but each time to make a spreadsheet with a new name. What I don't want to have to do is either change the macro's File Name each time or rename the file once created. Is there...
  17. gareth001

    Making a variable name within a for loop

    Hi, I've created 6 variables, TargetNo1 through to TargetNo6. When I run the For loop I need it to use the counter in the loop and concatenate it with "Target" so I can then run an If statement on the values held TargetNo1 to TargetNo6. The VBA I'm using is as follows: For intLabel = 1 To...
  18. gareth001

    Record Status Capture

    Hi, I've got two forms, one for adding data and another to search for a record and allow it to be edited if needed. When a record has been edited, I need a msgbox to appear and confirm i want the changes made. However i can't find a property that works correctly or that i've been using...
  19. gareth001

    Registry Closing

    Hi when i go to change things in the registry after about 10 seconds it closes by itself. I know the machine i am working on has some spame software installed (hence wanting to get into the registry to remove it). Is there somewhere i can stop this closing from happening? Thanks in advance gareth
  20. gareth001

    Validation Rules of Dates in Tables

    Hi, I'm wanting to list out years in table 1 which will contain years from 1901 through to 2050 (future proof). Table 1 will be used as a combo box lookup in table 2, but I'm only wanting the years which are valid to be used, e.g. 2005 and back. Is there a way to not include 2006 onwards in...

Part and Inventory Search

Back
Top