ms-access-2010

MSAccess: Change in subform recordsource causes loss of LinkChildFields binding

不问归期 提交于 2019-12-11 13:26:07
问题 I have a problem that Im completely stumped by. Or rather, I have a work-around that is messy and I don't understand why what I want to do doesn't work: I have a mainform / subform nest. The subform is linked by master/child fields (neither form is editable- so Im using the recordsource field directly rather than a separate control). The subform is a continuous form; so the subform displays the records related to the master in the mainform when the current record changes. The subform is based

Access Call Macro from Query (Opening a Form) Run-time error '2486': You can't carry out this action at the present time

为君一笑 提交于 2019-12-11 13:15:42
问题 I have an Access Query that requiers a value to be set in a combo-box within a form in order to work Criteria: Forms![_SelectCustomer]![CmbSelectCustomer] So far so good, however, I would like the query to open, read and close this form programatically when it is run using a macro. I have been following @David-W-Fenton's answer in THIS similar stack overflow question and have come up with the following code: Public Function rtnSelectCustomer() As Variant DoCmd.OpenForm "_SelectCustomer", , ,

Deploy Access 2007 Database with SQL back end to Citrix for multiple users

佐手、 提交于 2019-12-11 12:52:17
问题 Situation : I recently took IT Support ownership of our Time Tracking database at my company (the old owner left). This was written in Access 2007 and uses SQL Server 2008 R2 Tables and views in the back end. We publish a locked (db.accde) version to our Citrix farm and users access it by logging into a citrix web portal and clicking on the icon for the Access Database. I have a need to move this from once server to a different server so the old one can be sunset. I tried simply copying the

Using parameter from form in IN statement

跟風遠走 提交于 2019-12-11 12:00:06
问题 I have a form with several inputs, that are then passed on to a query. This is pretty straightforward, except I want one of my parameters to be used in an IN statement in my sql like such: Select sum(id) as numobs from table where year=[form]![form1]![year] and (group in([form]![form1]![group])); When [form]![form1]![group]="3,4" it querys "group in(34)" and if [form]![form1]![group]="3, 4" then I get an error saying "This expression is typed incorrectly, or it is too complex to be evaluated.

How to click through Access Report using SendKeys

為{幸葍}努か 提交于 2019-12-11 11:59:29
问题 After having slogged through creating a table of contents for my access report, I have finally gotten to the point where the code works, and a table of contents is created. As the instructions from Microsoft state, I need to manually click through the Print Preview until the last page so that the TOC is created. This works. How can I click through the Access Report using SendKeys? Here is my code so far... it works perfectly, except that SendKeys does nothing! 'Click through report so that

MS Access Update Query Error (Can't update Memo Field, That is actual Text Field)

不羁的心 提交于 2019-12-11 11:49:06
问题 Good Afternoon All, I have Access connecting to the Backend of some Quality Software we have in house (SQL) and pulling 2 tables (Software company made an update and split the data into two tables), These tables are joined and dumped into a Table ( tblWeakPointMaster ) with a Make Table Query. Primary key didn't transfer in Dump, New column (Aunonumber) was added Post-Snapshot, as well as some additional columns for the data we will be adding With the Data already pulled once, I Used the same

String error in SQL MS Access

喜夏-厌秋 提交于 2019-12-11 11:32:06
问题 I'm not sure if my title is 100% accurate, but I think that is the problem in my code. I got this code working, but when I made changes to other portions of my code and it stopped working. Here's the full SQL: UPDATE CFRRR SET assignedto = " & GetNextAssignee("program", "Language", "username") & ", assignedby = '" & Forms!Supervisor!NavigationSubform!assignedby.Value & "', Dateassigned = #" & Now & "#, actiondate = #" & Now & "#, Workername = '" & DLookup("username", "attendance", "userID = "

MS Access linked tables automatically long integers

▼魔方 西西 提交于 2019-12-11 11:31:45
问题 I have a large amount of linked tables in my access database that are going to be refreshed regularly and manipulated via queries. However, access is automatically determining some important fields as long integers because the beginning values of the field are usually 0s. When the value is not 0, it is goes up to 4 decimal places. Since I have so many tables and since they will be replaced each week with a new table of the same name (thus the link), it is not feasible to manually change the

PHP MS Access connection not working

守給你的承諾、 提交于 2019-12-11 11:27:15
问题 I am trying to connect php server to ms access database and i have tried everything still i am not able to connect. Here is my code <?php $conn=odbc_connect('testdb','',''); //$conn=odbc_connect("odbc:Driver={Microsoft Access Driver (*.mdb, *.accdb)};Dbq=C:\wamp\www\test\testdb.accdb", '', ''); if (!$conn) { exit("Connection Failed: " . $conn); } $sql="SELECT * FROM testdb"; $rs[]=odbc_exec($conn,$sql); if (!$rs) { exit("Error in SQL"); } while (odbc_fetch_row($rs)) //<-------line 14 { $json

Change table name in linked table in Access

╄→гoц情女王★ 提交于 2019-12-11 11:20:20
问题 I'm trying to change the name of a table in Access. I've gone to the link manager and gone through that process. It will change to the Server I put it, but it never changes the Table name (Highlighted in yellow). 回答1: It seems your goal is to change the linked TableDef 's SourceTableName , but I doubt that is possible. Attempting to do it triggers error #3268: Cannot set this property once the object is part of a collection. So I think you will have to create a new linked TableDef with the