ms-access-2013

How do I filter an Access subform with multiple combo boxes in the form?

我的未来我决定 提交于 2019-12-11 01:41:23
问题 I have multiple combo boxes in my form (acct_nbr, type, team_aud). I'm looking for a way to filter the subform (as a datasheet) based on the selection of each combo box. If a combo box is not used in the filter, the subform data just filters on the other two combo boxes. Here is what I have so far: Private Sub cboAccountFilter_AfterUpdate() Call FilterSubform End Sub Private Sub cboTypeFilter_AfterUpdate() Call FilterSubform End Sub Private Sub txtTeamAuditorFilter_AfterUpdate() Call

Writing Query in Microsoft Access, error in field description [closed]

 ̄綄美尐妖づ 提交于 2019-12-11 01:27:11
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I am writing a query in Microsoft Access. and I am getting a syntax error in "field description". Here is the code: CREATE TABLE CONS ( Com_Type text, Cons_2008 double(10,2), Cons_2009 double(10,2), Cons_2010 double(10,2) ); Thanks! 回答1: CREATE TABLE CONS ( Com_Type TEXT(150), Cons_2008 DOUBLE, Cons_2009 DOUBLE,

MS Access unwanted BreakPoint

半城伤御伤魂 提交于 2019-12-11 00:15:20
问题 I have a complex MS Access 2013 database with tens of forms. On one of the forms, I have button with vba procedure back to it, which returns values from MS SQL(ADODB) and puts them into the textboxes. Problem is, whenever i click this button, it steps into compile menu as if there was a breakpoint , but in fact there is no breakpoint . Of course there are no errors / MsgBoxes and If I just click F5 or F8 , it goes well. Has anyone the Idea, what may be wrong? 回答1: Phantom Breakpoints can

MS Access Left Join not working correctly

邮差的信 提交于 2019-12-10 23:15:42
问题 I am trying to write a query in MS Access 2013 and the left join is not working correctly. It is acting like a normal join. Here is what I'm trying to do. My first table [All Category Types] has one column [Category Types] . I am then trying to left join that to a query that has two aggregate fields in it. Virtual Table [Average by Category Type] is first grouped by Owner, and then by [Category Type] . Next is a sum field [CountOfIncident: Number] . What I want as a result is every item in

Share a mdb file over network, for many computers, can't edit the application

て烟熏妆下的殇ゞ 提交于 2019-12-10 17:57:03
问题 The company is using an old Delphi software, that uses a .mdb file as database. I can't change the way the application works, I don't have it's source. We are facing many problems such as: Lock problems When an user adds an entry, it doesn't update the database, it only appears locally The lock problems are solved for now, currently, the problem is that only the first user that connects to the .mdb can edit, add and delete entries, the other users do that to, but the changes are not applied

DoCmd.TransferSpreadsheet Issue

拥有回忆 提交于 2019-12-10 17:22:07
问题 I am exporting a query to Excel in Access 2013. This is the syntax that I am using for the export DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel12Xml, "qryDataExport", strExportPath, True The data transfers as it should, but one of the fields in the query is titled Player # and when exported to Excel this becomes Player . How can I keep the # intact with the export? 回答1: You can use the following function to export stuff to an .xlsx file, without having to deal with the

select data from ms access database by date in c#

拜拜、爱过 提交于 2019-12-10 12:16:03
问题 i want to select data from ms access database in c# i use this query da = new OleDbDataAdapter( "SELECT [Column1],[Column2],[Column3],[Date] from [Total] Where [Date] between #" + dateTimePicker2.Value.ToString() + "# AND #" + dateTimePicker3.Value.ToString() + "#", VCON); it's return me null please help me. 回答1: You must format date like : dateTimePicker2.Value.ToString("yyyy/MM/dd") you can also do : da = new OleDbDataAdapter( "SELECT [Column1],[Column2],[Column3],[Date] from [Total] Where

Get ID Filed from a Combobox in a Text Box where 1st column set to 0

和自甴很熟 提交于 2019-12-10 12:14:49
问题 I have a form, where I want to implement cascading combo-box. 1st user selects "Client Name" where I have SQL statement getting 3 columns - CLient ID, Client First Name and Client Last Name. In order to allow users to enter First Name, instead of ID, have set the Column Width: 0;3 2nd then user selects "Work" where I have SQL statement getting 2 columns - Work ID, Work description. In order to allow users to enter Work description, instead of ID, have set the Column Width : 0;2 Want to

How to search an MS Access Database Table using Javascript?

こ雲淡風輕ζ 提交于 2019-12-10 12:06:11
问题 I have an MS Access Database Table 'ImportFromExcel' having 16 columns. When 'Search' key in the webpage is pressed after entering keyword(s), it should go to table and check if the keyword(s) is/are present anywhere in the table. If the keyword is present in a row, that row should be printed. Else, it should throw a message. Code: <!doctype html> <html> <title>Search</title> <script type="text/javascript"> function query() { var pad = "C:\\Users\\azi!z\\Desktop\\Project\\Test.accdb"; var cn

Calculating time difference between activity timestamps in a query

◇◆丶佛笑我妖孽 提交于 2019-12-10 11:14:32
问题 I'm reasonably new to Access and having trouble solving what should be (I hope) a simple problem - think I may be looking at it through Excel goggles. I have a table named importedData into which I (not so surprisingly) import a log file each day. This log file is from a simple data-logging application on some mining equipment, and essentially it saves a timestamp and status for the point at which the current activity changes to a new activity. A sample of the data looks like this: This