access & vba

  1. E

    Opening and Modifying Excel with Access VBA

    Hello I am trying to open and modify an Excel 2016 file using VBA in Access 2016. I pieced together the code below, but I keep getting "Compile Error: Sub or Function not defined" at the bolded section of the code below. Does anyone know how to correct this error or if there is a better code to...
  2. C

    Pulling Data from an Excel Spreadsheet to Generate Worksheets?

    Greetings, I'm not sure exactly where to start, but I have an idea of what I'm trying to do. I tried to think of a way to import all these excel files into an Access Database.. but I am not very skilled, I can use the out of the box stuff for Access, but can't seem to get it to do what I'm...
  3. B

    recordset.addnew problem; recordset is read-only

    I have two tables in an Access database, a parent and child. I have a connection, and two ADO recordsets, one each for the parent and child tables. They're both opened with a string of SQL, adOpenDynamic, adLockOptimistic, adCmdText. The logic is to see if something specified in the spreadsheet...
  4. I

    Trying to save and close excel (2007) from ms access (2007) vba

    Still learning Ms Access vba but learning fast. I am not understanding fully and I am stumped on just on two things of which I am sure solve one, the other will also be solved. Spent the last 2 days with no progress. :( I have a button on my form opening my excel spreadsheet (template)...
  5. F

    VBA to open folder with variable name

    Hi, Working on a VBA code to allow me open a folder which was created a day before. Path and the partial folder name is static. The one thing that is variable is the end of folder name which would have a random date stamp. Example: Reporting_Extracts_14112017_82404 VBA so far: Private Sub...
  6. H

    Export/Output Open Query to Excel

    Hi, I have an Access DB that has 4 queries and one form. Depending on what the user does in the form will determine which query is run. This is controlled by a macro that looks at the state of three tick boxes and runs a query accordingly. My query for the forum is, can I have a single button...
  7. D

    How to append multiple CSV files to a table in access?

    I am not a VBA expert. What I would like to do, is to append those csv files to my table in Access. It's an ongoing process, so those CSV files keep coming in to my folder every day. I don't want to copy the headers though since I already have the headers in my Access table that i created. (I...
  8. D

    Appending CSV files into an existing table in Access

    I have several CSV files in one folder. All files have the same format. I created an empty table in Access that has the same headers as the CSV files. What I would like to do, is to append those csv files to my table in Access. It's an ongoing process, so those CSV files keep coming in to my...
  9. P

    Import Excel workbook (one sheet only) into Access from Subfolders

    Hello Does anyone have any code where I can import excel sheets into Access from Subfolders? Many thanks
  10. F

    Access to perform action every 10 minutes

    Heya, I'm totally lost here and tried numerous options to achieve this with no success... So basically I have a button on my Access dashboard that imports EXCEL sheet in the database. I want this "import" action to be performed automatically without someone pushing a button. I have tried the...
  11. P

    Access vba help - Network Path

    Hi, Apologies - I'm unsure how to post code into the forum. There is an issue with InputPath. It does not like the network/server name. It will work fine when it is local (my documents) I've also tried using the drive mapping letter. Any suggestions at all? Here's my code: Public Function...
  12. W

    How to merge or combine lots of excel documents?

    Is there any way to merge/combine data from multiple unsaved excel documents so its neatly in one document? Essentially I have lots of excel tabs open (all unsaved) and want to take columns A1-A20 and B1-B20 of all excels and place into one main document going downwards. SO rather than have...
  13. Ombir

    Wait until ADODB connection execute

    Hi Friends, I'm using below code to get count of records in access table which has been updated through sql server through ADODB connection (lcnn). SQL1 = "INSERT INTO [Users] " & _ "Select DISTINCT USER_ID " & _ "FROM " & _ "[ODBC;Driver=SQL Server; " &...
  14. M

    Access form, only allow user to edit last date data

    Is there anyway I can restrict user to edit only the last day data in the user form, and disable editing for all other dates. Please note that there are several data in same date. Thanks in advance
  15. C

    access to excel export with multiple targets for multiple queries

    What is the behavior of using this method to export data to excel from access. This works fine, if I make 2 more Dim j and Dim k and use those for the 2nd and 3rd loops. I have to do this about 6 times more. But when the excel file opens the cells that the data goes into is all over the place...
  16. J

    Checkbox Form-Table VBA Update Code

    I have a database tracking whether employees attend their meetings. For every meeting they attend they get paid. The attendance sheets get submitted by an upload form into my database as a Form with checkboxes for each employee. Now I want my VBA code to see that if the "AttndMeeting1" value is...
  17. J

    Excel to Access Dates

    Hello there, I'm having a problem with inputting dates via SQL commands to my access database as they are getting changed to peculiar values. Background: The tool is a counter for the amount of work a person has done, each time the button is clicked the updated values are sent over to the...
  18. J

    open selected record from subform in a form for editing

    I have a subform which shows the list of record .primary key is not assigned.i want to select a record from subform and want to click on a button called edit.it should open the form with the selected details.thanks in advance . suppose the subform name is" portdetails subform" and filed are l2...
  19. L

    compile error User-defined type not defined Set objXL = New Excel.Application

    Hi All, I am trying to Accomplish the following: Create a form that has a search function to search an item list but allow the user to also search through the item list using a bar to move up and down through the list. allow the user to edit only 1 column in the list (qty) list is stored...
  20. P

    Access displaying records

    Hi, I have two fields in my table if both of these fields values are "0" I don't want the record to show in my form but if it happens to be any other combination I do want it to show. I'm figuring it needs to be some sort of If statement but I'm not sure how to get this to reflect in my form...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top