ms-access

Calling a Function from Macro Design In Access

て烟熏妆下的殇ゞ 提交于 2019-12-24 03:15:37
问题 I have written some sql queries, some sub procedures and have some saved imports. Now I am trying to use the Macro Design in Access to provide a run button which will run these objects sequentially. However I dont see any command for running a sun procedure, I can see OpenVisualBasicModule and Runcode. OpenVisualBaicModule is only opening my sub procedures and Run Code is asking for a function only. I created a function with all the sub procedure call inside. But thats not working while

Random number using Date() in Expression Builder

最后都变了- 提交于 2019-12-24 03:14:19
问题 I want to generate random number using Date() to format it like for example: ddmmyyyyHhNnSs How do I achieve that? Is that even possible? I was kinda hoping I can do it easy way by the expression builder but I seem to fail on each approach ;) This number need to populate txtID field and it will be unique identifier for each database entry. 回答1: That's quite easy - with a twist. Problem is that Rnd only returns a Single and the resolution of this only allows for 10000000 unique values. As you

How to remove junk characters while reading a word document stored in 'OLE Object' field in an access database through C#?

主宰稳场 提交于 2019-12-24 03:07:54
问题 I am accessing an Ms Access database through C# . I am able to read all the fields. The problem that I am getting is, while reading .txt and .doc files that are stored in OLE Object field of the table, a lot of extra junk characters are also getting read before and after the actual text like- ÿÿÿÿ‡€ ÿÿÿÿÿÿÿÿˆ ÿÿÿÿÿÿÿÿ€ ˆˆˆˆˆˆˆˆ€ ÿÿÿÿÿÿÿÿþ i 8 @ñÿ 8 N o r m a l CJ _H aJ mH sH tH < A@òÿ¡ < D e f a u l t P a r a g r a p h F o n t … ÿÿÿÿ ( f p ³ ú ÿ A Ä M • À ' n ­ î 0 q Œ Ï . My C# code is like-

INSERT from ASP.NET to MS Access

孤者浪人 提交于 2019-12-24 02:43:00
问题 We are trying to build a Help Desk ticketing system just for intranet. Deciding upon the ASP .NET (C#) with Visual Studio 2008 Express (think we have a full version floating around if we need it). Nothing fancy, couple of pages grabbing NTLM information, system information and storing it along with their problem in a database. Goal is to make it simple, but instead of using our SQL Server 2000 back end, the admin wants me to use MS Access. I have the GridView and connections running smooth.

Slow initial connection to MS access database

社会主义新天地 提交于 2019-12-24 02:42:07
问题 I'm using UCanAccess to connect my JavaFX app with the database on the shared drive. The first time I open the app and run some query the initial connection to the database takes around 25 seconds. I put some timestamps and found that the root cause is the below method, specifically the first try catch block takes 25 seconds to execute. After that, every other time I call this method everything runs within a split of second. Any suggestions on how could this be resolved? public void openDB(){

correct sum of hours in access

旧巷老猫 提交于 2019-12-24 02:39:08
问题 I have two columns in an access 2010 database with some calculated field: time_from time_until calculated_field(time_until-time_from) 10:45 15:00 4:15 13:15 16:00 2:45 11:10 16:00 4:50 08:00 15:00 7:00 08:00 23:00 15:00 Now so far, it is good: calculated field did its job to tell me total hours and mins... now, I need a sum of a calculated field.... I put in an expression builder: =Sum([time_until]-[time_from]) I guess total sum should give me 33:50... but it gives me some 9:50. why is this

Group by with UNION

牧云@^-^@ 提交于 2019-12-24 02:35:16
问题 My code is not grouping properly, it still doesn't group [Reden uitstroom2] and [Reden uitstroom3] with [Reden uitstroom1]. The count works properly but its showing duplicates in [Reden Uitstroom1]. For Example: Reden uitstroom1 = 1x A / 2x B Reden uitstroom2 = 1x A / 1x B Aantal Uitstroom 2014 - Reden Uitstroom1 1 - A 1 - A 2 - B 1 - B Which Should be: Aantal Uitstroom 2014 - Reden Uitstroom1 2 - A 3 - B I can't seem to change [Reden Uitstroom1] into [Reden Uitstroom] because then it returns

Not allowed to create or change a record in MS Access

ε祈祈猫儿з 提交于 2019-12-24 02:33:18
问题 I have read numerous thread on the above question, but none of the answers satisfy the problem. My problem is two tables that are linked to each other (in a one to one relationship) using an "ID" field which is also the primary key. When I try to enter a record in the the main table (Don't know if Access knows this is the main table) the I get the following error: "You cannot add or change a record because a related record is required in table" Could anyone please help me with this? Thanks

separating code from data in access

你说的曾经没有我的故事 提交于 2019-12-24 02:28:18
问题 I am extending an access application at the same time that some users are using it. This means that users are changing databases. I created a backup of access file and working on it. In this way I can make sure that I am not making any changes to system that change database when I am testing the system. But I only can develop when users are not using the system and hence they are not changing databases (data in tables). This is not good since I cannot work at the same time that users are

MS Access query with dynamic from statements

走远了吗. 提交于 2019-12-24 02:24:10
问题 Ok this is vexing me. I have a query I created with an in statement in the from clause. What I am looking to do is have a global variable populate that from statement. Example Select * Form query1 in <Global Variable filename> What is going on is I link to a file that has hundreds of linked table and queries in it. My database only has a few select queries and link table to different database. I did not want to re-build all the queries and linked table is my database. The issue is the file