Hello, all.
I changed the code a bit and here is the full code as I have it for the function that is called when the button is pressed. Note that the cmdAddNew sub at the bottom is only designed to try to force the form to add a new record, after which the values I want are added.
Public Sub...
Hello,
I am trying to populate a form with bound controls based on a variable from another form. On the Click event from the main form, the value of a control (called SirNo) for the current record is taken in and passed to a function. This function will check the table for a value of SirNo...
Thank you, Skip!
The second solution worked great. The Add method apparently needs to know exactly what the format of the datasource is before it moves on. Point is it worked fine.
Thanks!
Wally -
The Gahndi that eats
Hello all,
I am trying to use the code below in a macro to import a file by first opening the Open File dialog box, allowing the user to select the file that they wish to use and then passing the file path to the Connection property of the Add Method. I have gotten run-time error 1004, which...
I had actually tried that, which was why I had asked. It hadn't worked, and I thought that I had done something by mistake to make it not work.
Wally -
The Gahndi that eats
Dan,
Thank you very much! It is always very helpful to know how applications like Excel, Word, Access, etc. perform basic operations like importing. Makes automating things a lot easier. I really wasn't aware of how Excel stored data on imported files, although I suspected that it had to...
Hello all!
I have looked for an answer to this question and, to my knowledge, no one has explored this specific issue. When you import a text file into Excel, does it store the file information anywhere? If so, is there a way (through VBA code) to tell Excel to save the file using the...
Hello all!
I have looked for an answer to this question and, to my knowledge, no one has explored this specific issue. When you import a text file into Excel, does it store the file information anywhere? If so, is there a way (through VBA code) to tell Excel to save the file using the...
Bill,
I'm sorry I forgot to answer your question at the bottom of this post. I tried it and it does not work. Just as a test to see if I could find any records in the database. I tried the following code:
Dim strSQL As String
strSQL = "SELECT * FROM bryan WHERE...
Actually, bill...
I had to change and do another form, but I am having trouble with it. In this form, I have two text fields(Table1 and Table2). When I press a button, I want to run a query that will use the name put into these fields as the table names.
First part:
If these are dropdown...
Thank you for your help. I am implementing it right now. I am not sure if it has worked, but can I use the same ([]) to indicate where a form-inputted value can be entered into a query?
Thanks! Wally -
The Gahndi that eats
Hi
This is my first writing here, so go easy, will ya?
I am trying to archive a large database, but I am willing to assume that I am going to have to do this more than one time. I have archived all records for 2001, but I want to be able to make a form where I can put in the date and click a...
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.