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: xuanb
  • Content: Threads
  • Order by date
  1. xuanb

    Populate textbox based on dropdown selection?

    I have a simple registration form with a dropdown menu for courses (eg. 101 Javascript, 202 ASP). I want to automatically write the course date and tuition to a textbox. I have a hunch that I wanna use a switch statement and that i have to pass the option value as a parameter but I'm stuck at...
  2. xuanb

    Combine 2 collumns in 1 text field

    Hi, I want to query 2 collumns and display the result in one text field. Here are my 2 Dlookups that I want to combine into something like "101 Access Forms". Thank you! Me.ClassID = DLookup("[ClassID]", "tblClasses", "[ClassID] = 101") Me.ClassName =...
  3. xuanb

    Messagebox/Login window focus problem

    I am a PB newbie. I want to create a Login window and check for username/pw and display the appropriate error message. If incorrect clear the SingleLineEdit field and set the focus to enter a new username/pw. Here's my code: //Local variables String ls_usnInput, ls_pwInput, crs_name, crs_pw...
  4. xuanb

    Loop thru text boxes with different names

    I have many rows of text box pairs that need to display the result of a function call. There's more to it but the bottomline is I want to loop thru a collection and concatenate the text box names accordingly and display the result in the text box. I am stuck because sofar...
  5. xuanb

    Loop thru collection to use as query criteria

    I have 10+ rows of textboxes that return calculated fields based on different criteria stored in the db. I want to avoid repeating a query 10+ times when the collumn name and the criteria change. So my idea is to create a collection and loop thru the elements to modify the query. Here's what I...
  6. xuanb

    Loop thru form fields and plug value into query

    I want to avoid repeating a query 11 times (number of form fields to be populated). My idea is to create a collection and loop thru the elements so the query can be modified on the fly. Here's what I came up with sofar: Sub TestColl() Dim rst As New ADODB.Recordset Dim cnn As New...
  7. xuanb

    Store each field of a recordset in its own variable?

    Hi, How do I loop through a recordset and store each field in a variable. I need these variables to perform some calculations and I don't want to hardcode them because they are part of the business rules (like commission type stuff) that might change and then should only be changed in the...
  8. xuanb

    bound combobox UNWANTED save when closing form

    Hi, I'm a newbie in Access. I have 3 bound comboboxes and other bound textboxes and radio buttons on my form. When I select an item in a combobox and close the form it overwrites the previous record in the database. This is NOT a desired behaviour. Here's an example when I select Region 2 and...
  9. xuanb

    Why is selected item in combo box saved duplicate??

    Hi Experts, I have a combo box based on a table/query row source. Me.cboInstallation.RowSource = "SELECT installation FROM MyTable WHERE region = '" & Me.cboRegion & "';" Me.cboInstallation = Me.cboInstallation.ItemData(0) The Control Source for cboInstallation is a field...
  10. xuanb

    Update Radio Button Option Group based on Combo Box selection

    Hi, How do I update a group of radio buttons based on a selection in a combo box. My code doesn't work. Please give advice. Me.option_group.ControlSource = "SELECT OGValue FROM MyTable" & _ " WHERE MyTable.ComboBoxValue = '" & Me.ComboBoxValue & "';" Your...

Part and Inventory Search

Back
Top