473,404 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Using MSAccess db inC# application

Kermit
16
Hi.
I looked through few pages of threads here, but didn't find the answer to my questions.
I'm writting a C# application (Windows Forms) that uses MSAccess database, and I have the following questions:
1. how can I check in what group the current user's is?
I created a login dialog box, and use the standard connection string to connect:
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + database + ";Jet OLEDB:System Database=" + workgroup + "; User Id=" + login + "; Password=" + cm.GetPass()

but I want to enable some options only to given groups of users (say administrators). How can I do that? Is there an easy way to check that?

2. I have problems with creating workgroups. An unsecured db works fine, but when I create a workgroup, I cannot log onto the db because non of the users have nay rigths (Unfortuantely I must use office 2000).


In MSAccess:
I create another user (root), and give him full admin rights. Then I log as root and revoke all rights from the base admin.
I create other users, and grant them some priviligies.
I create a workgroup file and when the db is secured non of the users has any rights nor to the database, nor the workgroup (mdw file). Of course, I cannot log into the db from my C# application.

Could you guys help me with that (I know, this is probably not the place for the second question, but I didn't want to create two threads)?
Aug 9 '07 #1
0 934

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: mounirfg | last post by:
How to programatically check from within a MSAccess application (A) if another MSAccess application (B which is not another instance of A) is currently open
15
by: (Pete Cresswell) | last post by:
I've got a .BAT file that I use for executing various MS Access apps that I wrote way back in the days of 2.0. It's evolved over time, but it still contains a number of possible paths to...
1
by: GrantS | last post by:
I am unable to get the connection to work with using the app.config file. the connection works when I use 'in line' connection as below:...
0
by: Richard Beacroft | last post by:
Trying to write a C# Windows App to export all objects and content from 2 MSAccess 97 databases for comparison analysis. very little documentation found. Have managed to instantiate MSAccess,...
3
by: moondaddy | last post by:
I need to start an ms access 2003 app from a vb.net winforms app and didn't want to load all the interop stuff for office into the .net project. I thought that using the shell cmd would be a nice...
9
by: laredotornado | last post by:
Hello, I am tasked with converting an MsAccess db to a MySQL 4 db in a Linux environment. Can anyone recommend any good freeware/scripts to help me do this? Thanks, - Dave
5
by: Paul | last post by:
Hi, I am a self taught VBA programmer, and I'm trying to learn VB2005 Express (The price was right). I like the look of the treeview control, and I'd like to use it as a menu system for my users,...
2
by: reidarT | last post by:
I am making an installation program for an Access application. The application is run on both Office 2000, 2002, 2003 and soon 2007 versions of Office, When I install the application I need a...
2
by: Abhishek Bhatt | last post by:
We are using MSAccess forms as a front end of our application. The business logics are written is VB 6.3 that comes with MSAccess. We have to use Triple DES in our application for encryption and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.