ODBC Settings
Mar 16, 2007
Good Morning,
Im trying to set an ODBC connection to automate the connection process.
The current code I have is:
Set wrkODBC = CreateWorkspace("NewODBCWorkspace", "admin", "", dbUseODBC)
MsgBox "Opening Connection...."
Set MainConn = wrkODBC.OpenConnection("Connection1", dbDriverPrompt, True, "ODBC;DATABASE=live; DSN=live;")
which works fine in bringing up a dialog box to choose the connection.
But what do i write in the database and dsn fields to enable the automation process.
See attached picture for the log in settings. All I have to do is press 'Connect' to start talking to the ODBC.
any help would be greatly appreciated.
Justin
View Replies
ADVERTISEMENT
Jan 2, 2007
Installed Access 2003 recently and could swear that on a form in design view, sizing a control button for example, by holding down shift key, worked as I expected; it sized up or down by 1/4th of a grid line.
Today, I hold down shift and size a control, and it sizes up or down by one full grid line. Can't find anything in Options that I might have changed, nor in the Format menu.
Does anyone know what may have caused this?
View 2 Replies
View Related
Jul 19, 2006
I am new to the Access database building. I am trying to create a Student database for contact information, etc. I have a main table which stores all the users' data. When the student opens the database, I would like to identify the user. They should be able to view everyone's information, but only edit their own. How can i make this happen?
Also, if that is easy enough, I would like to identify when a staff member logs on. This way they can have special permissions to access a schedule searching feature, to look at all the students schedules.
Thanks for the help.
Mike
View 5 Replies
View Related
Jun 6, 2007
How to swith sleep mode off? Does anyone know? thanks
.................................................. ............
<offending URL removed>
View 3 Replies
View Related
Apr 12, 2007
I have been looking all over for this function in MS Access 2007. Anyone have an knowlege on how to access the Startup section?
Thanks a bunch, :D
~Kilch~
View 2 Replies
View Related
Mar 10, 2008
I'm new to my job and ms access and not very savvy in the latter. There are fixes for my problem on the internet, but I really don't understand them.
I'm used to dd-mm-yyyy format and it's tough for me to think in mm-dd-yyyy in, for example, MS outlook. If I change my regional settings, of course, outlook and access follow suit. The access database is shared and we print out records as cover sheets for our files. Thus, it's not an option to have me on dd-mm and others on mm-dd. Is there a way for me to enter mm-dd in when using the database but have dd-mm standard for every other aspect?
If you can help, which I would appreciate immensely, please pretend that I don't know what I'm doing.
Thanks
View 7 Replies
View Related
Sep 10, 2005
I designed a query, opened it and printed it. But the margins were too wide and I needed it to print in landscape also. So I changed the settings and it worked fine, but I can't get it to save the settings. Is it possible to save the printer settings for printing a query, both the margin and the landscape settings. If so, please tell me how. Thanks.
View 4 Replies
View Related
Nov 10, 2005
HI
If i set the print settings (page orientation, size etc) when i have a query open, Access has forgotten it next time i open the query.
How the smeg do i get it to remember the print settings?
Please help me im running out of hair!
Thanks
View 3 Replies
View Related
Jan 24, 2008
Hi.
I have had a server change and db was moved and I need to change the IP etc. Is there a easy way to do this? I have searched through this forum in vain. :(
Kind Regards
Marie
View 3 Replies
View Related
Dec 22, 2005
Is there any way to change the default settings on the Find and Replace dialog from 'Whole field' to 'Any part of field'?
Thanks very much in advance.
Rob
PS Happy Christmas!!
View 5 Replies
View Related
Dec 2, 2006
This is getting into some stratospheric territory for me.
I am trying to change the visibility property of a label and corresponding text box, based on the contents of a different combo box. cboHow is a combo box that uses a value list as its row source, since the content of the list won't change. There are three fields that I need when the content of cboHow = "FIS". Otherwise I don't need them and I don't want to see them. My code is below:
Private Sub txtFISDepartmentNumber_BeforeUpdate(Cancel As Integer)
If cboHow <> "FIS" Then
lblFISDepartmentNumber.Visible = False
txtFISDepartmentNumber.Visible = False
Else: lblFISDepartmentNumber.Visible = True
txtFISDepartmentNumber.Visible = True
End Sub
At the moment there is no error code, but the label and text field don't respond by becoming visible/invisible when the contents of cboHow changes. Do I put this code with the txtFISDepartmentNumber or in cboHow? and do I use BeforeUpdate or AfterUpdate? Should I have a separate If..Then..Else for the label and the text box?
I have been playing around with this for several hours now and seem to be going in circles.
I am using A2K
View 7 Replies
View Related
Feb 3, 2005
i noticed that if access is open for a long time
the globals return null
can i set the time of a global variable?
View 1 Replies
View Related
Feb 9, 2005
I have a report that prints labels.
Every few times of opening the report, the page setup settings revert back to default i.e. 1" margins, 1 column etc.
how can i assure that these settings remain unchanged??
thanks!
View 3 Replies
View Related
May 29, 2007
I am working in a constantly changing db. The new regime is trying to calculate an inmates remaining time to work on the freeway trash crew if: 1) They show up for work and 2) have no FTA's. This form field is unbound. I currently have a query that calculates the days if they did show up for work or they had served their time. Since there are over 2500 inmates in the program, and the man power to update that many files daily isn't an option, I think it would make better since if we documented the ones that didn't show up but at the same time credit the ones that did...can this be done? If so, any suggestions. Thanks in advance.
View 11 Replies
View Related
Aug 26, 2013
Why does one have to enable all macros in the trust center in order for VBA to run? I'm making front end applications with Access and having to allow ALL macros to make them user friendly makes a huge hole in general security. I don't use any macros - it's all done by VBA.
Users are on a plethora of different platforms so changing reg keys is out of the question. Is there some way of self sign an Access accde? Is there some safe GENERAL approach (trusted sites is not good either) to allowing VBA from my applications ONLY?
View 5 Replies
View Related
Nov 21, 2013
I'm looking for a work around for getting the bound column setting for a combo box to work. I created a simple table with 2 fields that i have a combo box pointed to. My settings for the combo box are
Column count 2
Bound column 2
The first field is "Description"
The 2nd field is "ID"
I cannot figure out how to have column 2 to be the value that is left in the combo box once I have made my selection.
View 14 Replies
View Related
Nov 8, 2014
Under Current Database, I have "Overlapping Windows" checked. When I open a table, it opens to pretty wide. Then I resize it so that it takes up less space. After resizing, whether I click Save or not, after closing, then reopening the same table, it opens back to its original size (very wide), instead of opening at the smaller size that I resized the table to.
Is it possible to resize a table, and get it to open at that size next time you open that particular table?
View 2 Replies
View Related
Aug 22, 2006
Hi,
I have a huge problem!!!! Access seems to be picking up settings from somewhere which means that the Short date = mm/dd/yyyy and not dd/mm/yyy as set in the regional Settings!
Does anyone have any ideas why?!?!
Regards
H.
View 4 Replies
View Related
Jan 15, 2007
First, thanks to all that have helped me with out even knowing it! This forum is a lifesaver.
Problem:
I have a control button that, through macro commands that seem to be working, changes a field value from locked=no to locked=yes. This macro control also changes the enabled setting to = false.
When I save and exit the form, upon reopening, the above cell value is not saved. Is there a simple fix for a simple-minded person?
Thanks in advance
View 5 Replies
View Related
Jul 11, 2014
I am using this [URL] .... in our project but have made a minor change so it logs people out rather than close Access completely. It works beautifully but I want to take it a step further.
Instead of hardcoding the times in these two values
intMinutesUntilShutDown = 10
intMinutesWarningAppears = 2
I'd like to give users the options to set these themselves as not everyone will be the same. I am thinking I would have to check for who is currently using the database, this is stored in a hidden form in the following field.
[Forms]![frmwhoson]![whoson]
This username matches the users First Name in table Employees and in this table I have two fields to store these values
logmeoutafter
showlogoutmessagefor
So passing these values for the current user rather than having the logout times hardcoded.
View 3 Replies
View Related
Oct 23, 2013
In a startup-form I have following options to avoid annoying system messages in an ACCESS 2010 RUNTIME!! (.accdr)
Application.SetOption "Confirm Action Queries", 0
Application.SetOption "Confirm Document Deletions", 0
Application.SetOption "Confirm Record Changes", 0
But they do not work, there are still messages when deleting a record from an endless form by pressing "delete". I don't want to add a button. Docmd. Setwarning false in every form!
View 1 Replies
View Related
Sep 25, 2013
I'm using Access 2010 and cannot find where I can set my fields in a table to allow for allowzerolength.
Is there still a location, under table properties etc, where this can be set?
View 3 Replies
View Related
Sep 22, 2011
I need to enable macros in MS Access.
I don't have Trust Center.
How can I do this via registry settings?
View 1 Replies
View Related
Oct 25, 2011
What property settings do I set to eliminate the navigation pane ? It is displayed on my splash/menu screen and I would like to remove it.
View 3 Replies
View Related
Mar 19, 2007
Thought I best ask this question BEFORE I run into trouble.
If I were to set my database to hide the database window and all menus on startup so that users can only do what I want them to do and not edit anything. How do I go about reversing this if I needed to edit something as I would not be able to see any of the regular menus?
It would be good if the solution involved some sort of admin password rather than a sneaky short cut that a user may accidently stumble across.
View 5 Replies
View Related
Apr 10, 2008
Hi everyone and many thanks in advance.
I have configured my Access 2007 DB/app to hide the default ribbons and Options settings so that end-users cannot change the config or perform tasks that would jeopardize the integrity of the data. One of the other requirements on this project is to allow the end-user to launch the Spell Check feature.
It was simple enough to launch Spell Check from a button on a form. The problem lies in that the Spell Check feature has an "Options" button that serves as a point of entry to the Access Options that I'm trying to prevent the user from seeing.
Can anyone tell me how to hide or disable the Options button in Spell Check? I fear that this is not possible and I will have to choose between Spell Check and ensuring data integrity.
Many thanks,
Dominick:confused:
View 1 Replies
View Related