Trying to lock a table in Access 2013, so the data in the table and its structure are not editable, but are able to be read. How to do this? Can anyone help?
Sounds silly, but have you tried manually setting the file properties as "Read-only"?
To do this, close the database and right-click the file. Go to Properties, down to Attributes and check the box next to "Read-only"
Related
i've had a look around for an answer to this but couldn't find a definitive answer (if some can point me at a thread that does answer this i'd appreciate it).
I've created basic database where queries are logged and then reported on. When someone logs a new query it goes into a table called "TBL Main Log", this is done on a basic data entry form and when they select "Country" a field called "Owner" is auto populated. However, when i click save at the bottom, this data doesn't get pulled through into "TBL Main Log". My save is run off a basic close window and save macro.
I have set up my autofill being fed off a combo box for "Country". I'm assuming i need to do something in the event properties after update. I'm pretty limited with my coding abilities so could answers be dumbed down as much as possible for me.
Cheers
Luke
Based on the comments:
me.Refresh on forms forces bound controls to save to the table.
I have a Doors object in a module which has an embedded (OLE) spreadsheet. I need to update some of the cell values (depending on the values of other objects in the module) using a DXL script. I have done some searching and I cannot find anything that looks like an example. I assume that the DXL script will need to open the object, make it's changes and then close the object.
Any help would be greatly appreciated
This thread is really old but if you still need help with this...Off the top of head, I think the way to go about this is to first make a copy of the OLE outside of DOORS, make your changes, and then put it back into DOORS.
To make a copy of the OLE outside of DOORS you can check out this thread:
https://www.ibm.com/developerworks/community/forums/html/topic?id=454298c1-c144-43e7-bc55-af8a6057b500
To put it back into the object text, you can do it similarly using oleInsert() which you can lookup in the DXL Reference Manual.
I am migrating data from a Visual FoxPro Data Base Container to Excel using VBA.
After trying and failing various settings of the Connection String in order to open the Container, I discovered that at Container was placed code at OpenData event; this code asks a password to open the Container. This prevents other programs open the Container for access to data, including the Password parameter of the Connection String.
Are there a way to open the Data Base Container with OpenData coded event? If the answer can be implemented in VBA, please let me know how I can do it.
Thanks for your attention.
PD: Forgive my english. Is not so good.
Solution details would probably depend on what the (custom) "Stored Procedure" code in the Vfp database is doing exactly, where one way could be simply removing it. If you got a Visual FoxPro IDE, you could for example do so by using the IDE's "Command Window":
MODIFY DATABASE ?
and then right-click the Database Designer window, choose the desired "Event" in the Properties dialog -> "Edit Code".
If then for example the code would simplified look like
PROCEDURE dbc_BeforeOpenTable(cTableName)
*Just before a table or view is opened. Return .F. to prevent table or view being opened.
RETURN INPUTBOX("Password") == "Test"
ENDPROC
... you could simply
RETURN .T.
instead
While working on a project VB.net project in Visual Studio 2013 Community, i accidently inserted the ToolStripPanel/ToolStripContentPanel controls combination.
Unfortunately however, I now cannot delete it. Can anyone advise as to how to go about doing this? There must surely be a way. Unfortunately, I cant just hit Undo either as the project has been saved since.
Copy the MenuStrip (Default name MenuStrip1) to another form in your project. Go back to the problem form. Right-click the ToolStripPanel, click Select, and then hit delete. This will delete everything. Copy MenuStrip1 back to the problem form, and your original menu should show up. You may have to add the 'Handles' clause back in to any menu events. For example, if you have an event procedure named 'MnuFileOpen_Click' you may have to reinsert 'Handles mnuFileOpen.Click.
I have a project that requires the user to fill out a pdf form. I am loading the pdf file into an object tag. On the side I have a list of predetermined values. I would like to enable the user to drag one of those values to a field in the form and drop it there.
I can have them right-click the value, copy it and then right-click and paste in the field, but I would like to create something a little more user friendly.
Any suggestions are highly appreciated.
Thank you.
From what I can find (I was just searching if this was possible as well), and what I know from building forms in Adobe's form builder, this is sadly no possible.