ms-access-2010

How to build an editable form with data equivalent to a join?

≯℡__Kan透↙ 提交于 2021-02-19 07:47:26
问题 I have a table Tbl as follows: +----+------+----------+ | ID | Item | ItemDate | +----+------+----------+ | 1 | xv | 7/23 | | 2 | drc | 3/15 | | 3 | fna | 3/15 | | 4 | fna | 1/19 | +----+------+----------+ A user has requested a form TblForm based on this table that includes a column maxDate that gives the most recent ItemDate for each Item . The form must allow the user to edit Tbl data, so I can't just build a form based on a join query, as Access doesn't allow you to edit the results of a

Summing up Hours and Minutes in MS Access - How to deal with huge datasets

荒凉一梦 提交于 2021-02-17 05:27:47
问题 So I have a Table in MS Access 2010 which looks like this: Date Pers. ID Dauer Tätigkeit 10.04.2016 10 01:15 11.05.2016 5 05:00 ... I want to get the total hours of "Dauer Tätigkeit". All entries in the "Dauer Tätigkeit" are in the Date Format. The formula below is supposed to do the job for listing the end in a Format like '1346:30'. It actually does the job for small datasets. The dataset I have to work with though has around 800 entries with an hourly average of 3 hours. So i am expecting

Import .DBF file in MS Access after button press, Using VBA

ⅰ亾dé卋堺 提交于 2021-02-16 18:37:20
问题 I have to import .DBF file int MS Access Table On button click. The file name is SourceTable.dbf ; Access database is StudentDataBase.accdb and the table I want to insert it is named myTable. First I want to ask: do I need to have the same fields in the table or it can just be a blank table. I have the following sample code: DoCmd.TransferDatabase transfertype = acImport, databasetype = "dBase III", DatabaseName = "C:/SourceTable.dbf", objecttype = acTable, Source = "SourceTable", destination

Import .DBF file in MS Access after button press, Using VBA

 ̄綄美尐妖づ 提交于 2021-02-16 18:37:13
问题 I have to import .DBF file int MS Access Table On button click. The file name is SourceTable.dbf ; Access database is StudentDataBase.accdb and the table I want to insert it is named myTable. First I want to ask: do I need to have the same fields in the table or it can just be a blank table. I have the following sample code: DoCmd.TransferDatabase transfertype = acImport, databasetype = "dBase III", DatabaseName = "C:/SourceTable.dbf", objecttype = acTable, Source = "SourceTable", destination

Populate textbox based on combobox selection

笑着哭i 提交于 2021-02-16 14:49:27
问题 I am looking to update a textbox based on a combo box selection. For example: If someone selects the word "Beach Holiday" from the drop down, then the text box will automatically populate with the word "Spain" How do I do that? I know I can do something similar to: me.textbox = me.combo.column(1) but that's not exactly what I am trying to do. Thanks in advance 回答1: Configure your ComboBox to have two columns, with the width of the second column set to 0 so that it is not displayed. Then, set

Adding watermark to a Access report page

时光毁灭记忆、已成空白 提交于 2021-02-11 18:17:16
问题 I am trying to add a watermark to an Access report using the "Picture" property and have run into an issue. The following code works and the image is displayed/printed when the report is previewed and printed but does not work when the report is directly printed from a macro (nothing visible on-screen). "GrandTotal" is a bound text box on the report that is the sum of a field in the record source. I would appreciate any suggestion to print the watermark from both the print preview and the

Adding watermark to a Access report page

冷暖自知 提交于 2021-02-11 18:13:02
问题 I am trying to add a watermark to an Access report using the "Picture" property and have run into an issue. The following code works and the image is displayed/printed when the report is previewed and printed but does not work when the report is directly printed from a macro (nothing visible on-screen). "GrandTotal" is a bound text box on the report that is the sum of a field in the record source. I would appreciate any suggestion to print the watermark from both the print preview and the

Adding watermark to a Access report page

不羁岁月 提交于 2021-02-11 18:09:12
问题 I am trying to add a watermark to an Access report using the "Picture" property and have run into an issue. The following code works and the image is displayed/printed when the report is previewed and printed but does not work when the report is directly printed from a macro (nothing visible on-screen). "GrandTotal" is a bound text box on the report that is the sum of a field in the record source. I would appreciate any suggestion to print the watermark from both the print preview and the

Adding watermark to a Access report page

僤鯓⒐⒋嵵緔 提交于 2021-02-11 18:08:55
问题 I am trying to add a watermark to an Access report using the "Picture" property and have run into an issue. The following code works and the image is displayed/printed when the report is previewed and printed but does not work when the report is directly printed from a macro (nothing visible on-screen). "GrandTotal" is a bound text box on the report that is the sum of a field in the record source. I would appreciate any suggestion to print the watermark from both the print preview and the

How to compare fields with Null values in Access

旧时模样 提交于 2021-02-11 14:32:46
问题 I have a query that looks at one tables field and matches the second table's field. It looks to see if the fields don't match each other. If there's no match the second table's field must replace the first tables field. I have this working EXCEPT when there's a null value in either of the two tables field. I tried using isNull() on the first table and it does select values that aren't null but if I apply the same function to the second table I get nothing in return. UPDATE [NAVAIR