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 Wanet Telecoms Ltd 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: mxp346
  • Content: Threads
  • Order by date
  1. mxp346

    Get Listbox Value rather than location number

    I have the below code so far. The problem is that the variants are being populated with a number equal to the location in their respective listbox. I want the variant to equal the actual value. I'm not sure if this will have an impact on how the correct code is written but the values in the...
  2. mxp346

    Populate Listbox based on a radio button selected

    I have done some VB programming with Excel previously but never with Access. I have a form with the following: Radio Buttons Domestic and Overseas Listbox Organization I have a table called Organizations which has two columns (Organization and Location) When a user clicks the radio button...
  3. mxp346

    Can I save .xls as .txt and not have "" around each line?

    I am trying to copy a range of cells into a text document. The code below copies the range, pastes it into the text document, saves the text document and then closes it. Everything works correctly except when I go to open the text document each line of text has quotes around it. In trying to...
  4. mxp346

    How do you copy a used range to a text document?

    I have a worksheet called Scripts that will have a different number of rows, but the data will always be in column A. What I would like to do is save the used range on the Scripts sheet to a text file. I do not want the other worksheets to be saved to the text file. I'm not really sure where...
  5. mxp346

    Loop through worksheets and get values from the current sheet

    I need a simple loop statement that will go through each worksheet in a workbook and then take certain values from that worksheet. Then it is going to run some other subs using the variables. Below is what I have. I believe I am doing something wrong with ActiveSheet part of it. For Each...
  6. mxp346

    Set a cell to hard coded text and a variable

    I am trying to use VBA in excel to have the next empty cell value to be a combination of hard coded text and a variable. The code below is part of a loop that goes through each of the worksheet and sets the variable userid to cell A1. I then want the code to enter the following in the next...
  7. mxp346

    Return an entire row from a range

    I have a form, SearchForm, that has a text box called TicketNumber. Once the button is clicked, I want the value in the text box to be compared to the Column Range called AllTicketNumbers. When it finds a match, I want the entire row output to a worksheet called Search Results. For this case...
  8. mxp346

    Excel VB: Loop till empty cell found

    I have a form that after filled out, adds an intern name and job skills to a worksheet called interns when a button is clicked. How can I have the data of the new intern entered into the next empty row? I'm thinking I need a loop that starts with the first row and then keeps going down until...
  9. mxp346

    Complex Loop

    I am a beginner and I am trying to write a rather complicated loop. The background is... I am trying to write VB code that loops through unassigned jobs and based on the Job Type, it assigns the job to an intern that can do the Job Type. I have a table called "JobTickets" that has...
  10. mxp346

    Only need part of a date

    I have a field called DueDate in a table called Assignments. I have the field set up as a Long Date so that the full date is kept for historical data. I'm running some VB code that needs to just look at the day of the week, not the full date. Is there VB code that can take out just the day of...
  11. mxp346

    Query by height

    Is it possible to set up a query so that it finds all the records between two heights? I set up an input mask so that the heights are always entered like _'__".
  12. mxp346

    Organizing the tables right?

    I have a paper form that i'm trying to convert the information into a database using Access. The form has 3 main categories with check lists underneath them. An abreviated example of what it is like is below... Type of Anesthesia 1.Epidural 2.Spinal 3.General 4.Other Procedure...
  13. mxp346

    Query based on form values

    I'm trying to make a form that can be used to query so that the user doesn't have to go in an write up a query in design view. On my form I have text boxes txtBegDate and txtEndDate and AnesNum. I want the form to find all the rows in the table where the field Date is between the two values...
  14. mxp346

    I have a text field AnesNum that ca

    I have a text field AnesNum that can include several ID numbers. If the ID number 111 is include in this set of numbers, I want the text field OtherAnesType to become visible. The following code works if I type in *111* but not if I type in 111 or 111, 123. The help file said that * can be...
  15. mxp346

    save multiple events in one field

    I have a paper form where there is a list of events that can occur during a visit. The person can check off several of the events. Is there a way to make a form so that if there are several items checked they will all be stored into the same field? Or would I be better off doing it some other...
  16. mxp346

    Speed up inputs

    I have a form that when the user fills it out with an ID, Description, Category and Occurance Number, the inputs are stored in an Occurance table. There is another table that has the ID's listed and has the associated Description and Category. So that the user doesn't have to input the...
  17. mxp346

    Lookup fields and then input to a table

    I have a form that the user enters in an id number. According to that ID number I want the form to lookup the category and description in a table. Then I want to be able to save the ID number and the values that were looked up into a different table. The table that the values are looked up in...
  18. mxp346

    Insert several records at once

    I have a form with the following text fields... txtID1,txtDesc1, txtID2, txtDesc2, txtID3, and txtDesc3. The user fills out all of these fields and then there is a button to add the records to the table, tblOccurance. Each of the sets of ID's and Desc's stay together as 1 entry into the table...
  19. mxp346

    Saving multiple values in a form to a table

    I have a form where there are three fields that go together. There are also several sets of those three fields on the form. Is it possible to have a button that if pushed enters each set into a table whith each one having an autonumber entered with it. The setup of the form is below...
  20. mxp346

    Access 2000 Lookup Values

    I have two tables. I made a form where the person types in an ID number for an instance. I want the form to look in the one table and pull the information that goes with the ID entered by the user. The user should be able to open the form and type an ID in, then the statement...

Part and Inventory Search

Back
Top