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: *

  1. jallen919

    Refresh Grid based on variable in where clause

    I have a form to search for customers based on last name. The user types the name in the text box and clicks on the search button. There is a data grid attached to an adodc. I want to know how to assign the value typed in the text box to a variable that is inserted into the where clause of a...
  2. jallen919

    How to select row in datagrid based on entry in another form

    I have a form that includes a datagrid displaying all customers in customer table. On the form is a NEW button which creates a new record in the customer table. When the user returns from the NEW window, I would like to have the datagrid refreshed to show the new customer entry but want to...
  3. jallen919

    Select Row from DataGrid then populate separate form

    I have a separate form with a datagrid on it. If the user selects a specific row in the datagrid then clicks on OK, I would like the record that was selected in the datagrid to populate several text boxes on another form. Any thoughts on how to do this?
  4. jallen919

    Need Help Using String Function

    thanks so much -- I thought I just copied and pasted last time but apparantly I didn't. You saved me days worth of manual work -- thank you.
  5. jallen919

    Need Help Using String Function

    I got some help from another tek-tip user on using the string function. I have a column in my DB that sometimes has two strings in a record. If the record has two strings in the specific column, I need to delete the first string and leave the second. If there is only one string, that string...
  6. jallen919

    Update Column in table from another table based on criteria

    I have one table with columns for lastname, homephone and e-mail and another table with just lastname and homephone. I've added the e-mail column to the second table and want to update it with e-mail addresses based on the criteria where lastname=lastname and hmphone=hmphone. I've tried both...
  7. jallen919

    Need to delete first string value of a field

    OK -- here is what I did... I added a new module and just called the module Functions and inserted the code you wrote. When I run the query I get a message saying RunTime Error 5 -- invalid procedure call or argument and it stops and highlights the line: MyVar = Split(StrIn) Thanks very much...
  8. jallen919

    Need to delete first string value of a field

    Where do I place the code that you so kindly wrote for me?
  9. jallen919

    Need to delete first string value of a field

    Not to be dense but I'm not sure how to put this code in my DB and run it on the table I am working with... can you help with that too please :)
  10. jallen919

    Need to delete first string value of a field

    I have a column that sometimes contains two string values. I actually only need it to contain one string value. If there are two string values in the field, I will always need to delete the first string value and leave the second one. In addition, the first string value always starts with two...
  11. jallen919

    Print report based on number of records

    I would like to print a report that pulls records just based on the amount of records. For example if I have a table with 2000 records but I just want 200 records to print not based on any other criteria other than I just want 200. This may be simple and it may be in the knowledge base but...
  12. jallen919

    List box not showing bound column values

    I have two tables (one linked from another db). I want the second table to lookup the AccountExec from the first table. I have set the AccountExec column as lookup type ListBox, Row Source Type is Table/Query, Row Source is the name of the table (which has two columns). I want one column to...
  13. jallen919

    Module Code won't run when executed by macro

    Well I want it to be run as part of a macro because I have some append and update queries run, then I need the module to run. If I run is separate from the macro it works just fine but if I call it from within the macro it doesn't seem to work... should I be running all commands from behind a...
  14. jallen919

    Module Code won't run when executed by macro

    I have created a module that I can get to run when running it from VBA but when I reference the module in a macro using either the OpenModule AssignBrokers or RunCode AssignBrokers() -- the module doesn't work correctly. Any clues? Below is the module code that is being run. Public Sub...
  15. jallen919

    Error when trying to create recordset

    Not sure exactly how I fixed it but changed my code so my first recordset opened all records in the table for update and then my second record set was opened as a select statement and as a static set of data -- then it seemed to work. I posted my new code below. Thanks to both of you for your...
  16. jallen919

    Error when trying to create recordset

    That got me past the first message -- now I get "the object or provider is not capable of performing the requested operation" any thoughts? PS. You rock :) thanks for all of your help on this.
  17. jallen919

    Error when trying to create recordset

    OK creating a new DB and importing seemed to solve my problem but now when I create my code I'm getting an error that says "Method or data member not found" here is the code I have -- can you tell me if there is something obvious that I am missing (keep in mind this is my first...
  18. jallen919

    Error when trying to create recordset

    I'm new to Access VBA so bare with me :) I bought a book on Access Development and there is some code (working with Recordsets) that I want to put into my Access database. To add this code I click on Modules from the main window, start typing: Public sub myfunctionname() Dim rsLeads as Then...
  19. jallen919

    Need to loop through records set, update field based on another table

    I have one table containing sales records (with a column for AccountExec). One table containing list of Account Executives (with yes/no column to designate active status). Need to loop through the sales table and assign one active Account Exec to each record. Want it to loop through list of...
  20. jallen919

    Update field in table based on form field

    I need you to tell me if I'm missing something... I think I figured out a simple answer to my problem. I did an update query with the udpate field refering to the textbox on the form. Up to this point in the criteria field I was also putting the same info... but if all the imported records in...

Part and Inventory Search

Back
Top