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

    graphs and on load event problems

    hi i made a form, containing a field from a table. i viewed it in pivot chart view and the graph works well. however, i tried using VBA and in the form load, seting all views to false except the chart view, but doesnt work. it always opens in datasheet view. can someone show me how to do...
  2. bluesage

    onload, option to create new database or open saved one

    hi, i need some help with code. can anyone post an example or some code. what i need: lets say i made a database name DATA_TEMP and it contain tables without records but all the fields and validation rules are set. i want to create a form, on which when the user loads it, it gives 2...
  3. bluesage

    saving records from one table to another table

    hi, im planning a database for a boarding house containing 10 residents and 10 rooms. i need some sample code or if someone can post a sample database it would be most helpful. here is a description of what i want to do: ================================ tblRESIDENT id_person (PK) name...
  4. bluesage

    autoform and making my own

    hi, its easy to make an autoform, but i would like to make a form my self with which we can add, delete, and see all the records in a table, or even in all my tables. can anyone give me some help? w/ code is welcome i tryed using cmd buttons, with find next record, but im having problems thanks
  5. bluesage

    help w/ code datediff datepart

    Private Sub Text21_Enter() hi, here is some code i wrote, but im having some problems. this works fine for calculating a diference in years. but im trying to CALCULATE THE NUMBER OF MONTHS between two dates IN TWO DIFFERENT YEARS this code, returns the number of months which is correct, but it...
  6. bluesage

    filtering a continuous form with two option groups

    hi, i need an example code. what i have is a continous form with data containing an Id in one field, a month (ie.jan) in another field and the rest. i want to create two option groups, one to filter by month, then the second to filter by id. i have done it with just one filter. ie. filter by...
  7. bluesage

    recordset with query

    is it possible to do the following for a query: set rst = dbs.OpenRecordset("queryname") i know it works with tables: set rst = dbs.OpenRecordset("tablename") thanks
  8. bluesage

    recordset code and errors

    hi, here is some code i got from a site. ive made some changes and tried it but doesnt work. need help ==================================== Private Sub cmdGetRows_Click() Dim dbs As DAO.Database Dim rst As DAO.Recordset Dim strqry As String Dim strFieldValue As String Dim...
  9. bluesage

    recordset and query code help

    hi, i want to use a dynamic query but instead of opening it once it is executed, i want the result to be displayed in a text box. i would also like to know if anyone can tell me how to write code to select just a field from a recordset (is recordset = query ?). example: i have a query with...
  10. bluesage

    listbox and textbox issue

    hi, im trying to do the following but need help: 1.) i have a listbox containing 4 values, lets say bob, frank, sara, tara 2.) i have a textbox with no value, but i want it to show a specific value from the listbox. example: i want the txtbox to show bob. 3.) if tried this: =...
  11. bluesage

    listbox and textbox issue

    hi, im trying to do the following but need help: 1.) i have a listbox containing 4 values, lets say bob, frank, sara, tara 2.) i have a textbox with no value, but i want it to show a specific value from the listbox. example: i want the txtbox to show bob. 3.) if tried this: =...
  12. bluesage

    form going blank

    hi i created a form. added a group of option buttons and then i set the forms record source to have a source of 1 table and 10 queries. SELECT * FROM tblname, query1 ... query 10 when i viewed the form in form view, it was blank ? can anyone help me? if i remove the record source, i can view...
  13. bluesage

    INSERT INTO query on click of a button based on txtfields input

    here is some code i have written to add items to a table on the click of a button on a form. =========================================== Private Sub Creerbtn_click() Dim strSQL as string Dim no_res as integer Dim nom as string dim prenom as string dim etudiant_ouinon as string etc...
  14. bluesage

    query launched form cbobox, saved with different names

    hi, i want to create code for an afterupdate of a combobox which will create and save a query under a certain "name", but each time it is run, it is saved under another "name" or the previous one is renamed, and the one being created stays the same. lets say i have three choices, bob, frank...
  15. bluesage

    getting a saved query displayed in txtfield from code

    hi, here are two different versions i tried, but neither work. i don't know what to do. what im trying to do is: 1.) i have a form and with a combobox, when the user selects a name 2.) i want the value to be sent to the query 3.) and the result displayed in a txtfield on the same form...
  16. bluesage

    error message after running code

    hi, i have a problem, here is the code i wrote (i left out some of the declarations) but when i run it i get an error message which says the following: microsoft access can't append all the records in the append query. microsoft access set 1 field(s) to Null due to a type conversion failure...
  17. bluesage

    writing code to create a query

    hi, im quite new to microsoft access. I have been trying to figure out (searched the web, read books) how to create a query through VBA based on the choices in a listbox but so that the next time the choice is chosen, it creates a query without having to delete the old one. so in other words...

Part and Inventory Search

Back
Top