ms-access

Run a macro with embedded Excel sheet in Access

坚强是说给别人听的谎言 提交于 2020-01-05 03:32:34
问题 My problem is quite simple but I haven't found a solution so far... I created a form in Access called Form1. In this form, I inserted an "Unbound Object Frame", which is a new macro-enabled Excel worksheet. In the Excel sheet, I create a macro we can call "ExcelMacro". I want to know how to run macros in this Excel sheet from Access, e.g. in my Access macro, run "ExcelMacro" I do NOT want to link my Excel sheet to an external Excel workbook. Do you have any ideas? Thanks a lot for your help!

Copy Access database query into Excel spreadsheet

六眼飞鱼酱① 提交于 2020-01-05 02:53:11
问题 I have an Access database and an Excel workbook. What I need to do is query the database and paste the query into a worksheet. The issue is Runtime. I have stepped throught the program and everything works, but it works extremely slow, we're talking up to 30 second run times per query, although most of this run time is coming with the CopyFromRecordset call. The database has over 800k rows in the table I'm querying. Currently at my company there are people every morning who manually query the

Order rows according to which condition is met?

烂漫一生 提交于 2020-01-05 02:52:06
问题 I have a pretty simple question: Is it possible to order the rows retrieved according to the which condition is met? For example, I have a table of people, and I want to retrieve all people whose names begin with an "I", or end with an "ster", or contain "lo", ordered according to which condition of these is met. First the rows that match the first condition, then the rows that match the second, and so on. ( Without duplicated: if a row meets the first condition, it shouldn't show again for

Order rows according to which condition is met?

时光毁灭记忆、已成空白 提交于 2020-01-05 02:51:32
问题 I have a pretty simple question: Is it possible to order the rows retrieved according to the which condition is met? For example, I have a table of people, and I want to retrieve all people whose names begin with an "I", or end with an "ster", or contain "lo", ordered according to which condition of these is met. First the rows that match the first condition, then the rows that match the second, and so on. ( Without duplicated: if a row meets the first condition, it shouldn't show again for

Read Access File into a DataSet

穿精又带淫゛_ 提交于 2020-01-04 18:33:40
问题 Is there an easy way to read an entire Access file (.mdb) into a DataSet in .NET (specifically C# or VB)? Or at least to get a list of tables from an access file so that I can loop through it and add them one at a time into a DataSet? 回答1: Thanks for the suggestions. I was able to use those samples to put together this code, which seems to achieve what I'm looking for. Using cn = New OleDbConnection(connectionstring) cn.Open() Dim ds As DataSet = new DataSet() Dim Schema As DataTable = cn

Read Access File into a DataSet

一曲冷凌霜 提交于 2020-01-04 18:32:32
问题 Is there an easy way to read an entire Access file (.mdb) into a DataSet in .NET (specifically C# or VB)? Or at least to get a list of tables from an access file so that I can loop through it and add them one at a time into a DataSet? 回答1: Thanks for the suggestions. I was able to use those samples to put together this code, which seems to achieve what I'm looking for. Using cn = New OleDbConnection(connectionstring) cn.Open() Dim ds As DataSet = new DataSet() Dim Schema As DataTable = cn

Migrate MS Access to PostgreSQL [closed]

浪尽此生 提交于 2020-01-04 18:30:30
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 months ago . I'm getting data as an Access file. My application uses PostgreSQL/Java. I'd like to convert the Access database to PostgreSQL. can any one help me to code this 回答1: I doubt there is any simple automatic method. You will have to create ddl statements to make the tables in

Access 2010 DLookUp

感情迁移 提交于 2020-01-04 17:54:37
问题 Working with MS Access for the first time and coming across a few problems if someone could please point me in the right direction. So I'm doing a mock database (so it looks silly) just to learn the ins and outs and need some help with DLookUp at the moment. My database has two tables, with the following fields: C_ID the PK in Courses and FK in Student tblCourse: C_ID, Title, Subject tblStudent: S_ID, C_ID, Name, EnrollDATE As I said this is just for testing/learning. So what I want is to

Access 2010 DLookUp

折月煮酒 提交于 2020-01-04 17:53:39
问题 Working with MS Access for the first time and coming across a few problems if someone could please point me in the right direction. So I'm doing a mock database (so it looks silly) just to learn the ins and outs and need some help with DLookUp at the moment. My database has two tables, with the following fields: C_ID the PK in Courses and FK in Student tblCourse: C_ID, Title, Subject tblStudent: S_ID, C_ID, Name, EnrollDATE As I said this is just for testing/learning. So what I want is to

Access 2010 DLookUp

杀马特。学长 韩版系。学妹 提交于 2020-01-04 17:53:19
问题 Working with MS Access for the first time and coming across a few problems if someone could please point me in the right direction. So I'm doing a mock database (so it looks silly) just to learn the ins and outs and need some help with DLookUp at the moment. My database has two tables, with the following fields: C_ID the PK in Courses and FK in Student tblCourse: C_ID, Title, Subject tblStudent: S_ID, C_ID, Name, EnrollDATE As I said this is just for testing/learning. So what I want is to