ms-access

How to Create a new blank Record without it showing the previous data from the previous record?

纵然是瞬间 提交于 2020-01-06 01:34:12
问题 I keep trying to create a new record expecting a new blank form to show up but all of the info from the previous form shows up. I need a blank form to enter data but i also need to save all of my previous forms. Overall, I want to keep adding onto my records. But somehow it won't let me. 回答1: If I'm understanding correctly you open a form but it is showing the data you previously entered? if it is that you want avoid seeing the previous data and just have a blank for for entry that you should

“Parameter xxx has no default value” error when using Order by in SQL statement

荒凉一梦 提交于 2020-01-06 01:32:31
问题 I am trying to run the following SQL statement: "SELECT *, (IIF([Field]=TRUE,'StringValue1','StringValue2') AS [NewField] FROM [Table1] ORDER BY [NewField] ASC" But this gives me an error "Parameter NewField has no default value". How can I solve it? I am using Microsoft Access (MDB) database using Jet Engine from Delphi 7. Thank you! 回答1: In the ORDER BY clause, you can reference a column by its ordinal number: SELECT IIF(T.[Field]=TRUE, 'StringValue1', 'StringValue2') AS [NewField], T.*

Why would AccessDataSource return different results to query in Access?

两盒软妹~` 提交于 2020-01-05 23:04:18
问题 I have a query to return random distinct rows from an Access database. Here is the query: SELECT * FROM (SELECT DISTINCT m.MemberID, m.Title, m.FullName, m.Address, m.Phone, m.EmailAddress, m.WebsiteAddress FROM Members AS m INNER JOIN MembersForType AS t ON m.MemberID = t.MemberID WHERE (Category = 'MemberType1' OR Category = 'MemberType2')) as Members ORDER BY RND(members.MemberID) DESC When I run this in Access it returns the rows in different order every time, as per the random sort order

'Microsoft.ACE.OLEDB.12.0' provider is not registered -but it is

六眼飞鱼酱① 提交于 2020-01-05 19:06:13
问题 Short and sweet: app works on x86 machine but not on x64 (tried on a 2008 Server and a Windows 8) Microsoft Access Database Engine 2010 already installed (also have Microsoft Office 2007 Access Database Engine installed) MS Office not installed confirmed the existence of C:\Program Files (x86)\Common Files\microsoft shared\OFFICE12\ACEOLEDB.DLL Code: string conn = "Provider=SQLOLEDB;Data Source=localhost;Initial Catalog=Northwind;Integrated Security=SSPI;"; OleDbConnection _connOle = new

Access VBA object types

天大地大妈咪最大 提交于 2020-01-05 14:05:23
问题 I am trying to build a procedure in my Access project that will accept either a table or a form as part of the argument. If the object is a table then it should check the table's fields; if it's a form then it should it the form's controls. I've tried using either variant or object variable types for the argument. But either way when I check the VarType() the passed variable is of type object, so I can't distinguish between them. (I'm currently passing a table as a TableDef object by the way.

Access VBA object types

半世苍凉 提交于 2020-01-05 14:04:17
问题 I am trying to build a procedure in my Access project that will accept either a table or a form as part of the argument. If the object is a table then it should check the table's fields; if it's a form then it should it the form's controls. I've tried using either variant or object variable types for the argument. But either way when I check the VarType() the passed variable is of type object, so I can't distinguish between them. (I'm currently passing a table as a TableDef object by the way.

Call an access function outside access with VB NET

社会主义新天地 提交于 2020-01-05 12:21:06
问题 I would like to call a custom created function in access from VB NET. For example I created a myRoundNumber function in Access when i create a query in access with that function it works but outside it doesn't. 回答1: You cannot use custom Access functions in a query outside of Access. 来源: https://stackoverflow.com/questions/7548762/call-an-access-function-outside-access-with-vb-net

Can I use “not equal” in MS Access Find Function

╄→гoц情女王★ 提交于 2020-01-05 10:29:26
问题 Can i use the qualifier "not equal" in the ms access find function? I have a column of numbers that are the same for most records but an occasional different number gets in the list and i want to find these different number every time they occur. 回答1: Qualifier "not equal" is <> 回答2: If you are referring to the Find / Replace option in the datasheet view of a table, then no - you cannot use a "not equal" option. You can, however, filter the data or use a query in order to find the appropriate

ODBC linked table not showing fractions of seconds

夙愿已清 提交于 2020-01-05 10:18:47
问题 I have linked an IBM informix database table through an ODBC connection to an Access 2010 database. My issue is that the date field in this table only shows dd/mm/yy HH:nn:ss in the Access view, where the stored data is to 1000th of a second. I can show this in Excel 2010 but not in Access 2010: is this possible? Not having this level of accuracy is preventing me making accurate calculations! 回答1: There is a similar question on another forum here. The Date/Time field type in Access does not

How can I link an external Access table via .NET?

北城以北 提交于 2020-01-05 10:15:34
问题 I have two files located in the App_Data folder in my solution. Both files are .accdb files and one is a file of tables, the core. I have another file that contains the stored queries and some VBA elements that I won't be needing anymore, but I will need the stored queries. This solution is located on a network drive and the file that holds the queries and the file that holds the tables are linked. When I create an installation project and install the application, I only need the file that