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...
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...
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?
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...
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...
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...
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...
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...
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...
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...
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...
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...
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.
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...
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.