"Dis" Allowing Edits In Datasheet Mode When Macros Are Used. Why Won't This Work?

Jun 24, 2005

Hello all,

I'm looking for someone to help me understand why a form of mine that has only 3 fields - [Name], [Date], [Notes] isn't working right.
I have the form's "Allowedits = No" which works great except when I add a macro that uses the "Setvalue" to put the current user in the name field and to put the current date in the date field the form allows editing. When I take the macro out it works the way it should.
All I'm doing is creating a Journal entry area that allows one to write notes into the [Notes] field and automatically plugs in the current user and the date/time but doesn't allow editing once entered.

Is there a better way of doing this?

Thanks

Bryan

View Replies


ADVERTISEMENT

Query Results Allowing Edits

Oct 18, 2007

I have 2 related tables. The form to enter new data into the tables is set up with a subform for the second table. I want to allow the user to query for a specific record, have it display in a form that looks exactly like the data entry form, and be able to update the tables from that. I first tried an exact copy of the data entry form, using a subform for the second table. It allows me to update the 2nd table from the query results displayed, but won't allow updates to the main form. So then I tried just doing one form with all the results displayed, no subform, but then it won't allow me to update ANYTHING.

What am I doing wrong? Any help is appreciated.

Thanks
Stacey

View 1 Replies View Related

Forms :: Record Source Not Allowing Edits?

May 17, 2013

i have a form that has a record source

Code:

SELECT tblClientDetails.FirstName, tblClientDetails.Surname,
tblClientDetails.MobileTelephoneNumber, tblClientDetails.SentTextMarketing
FROM (tblCategories INNER JOIN tblItems ON tblCategories.CategoriesID = tblItems.CategoriesID)
INNER JOIN ((tblClientDetails INNER JOIN tblOrders

[Code] .....

this does not allow edits on a continuous form. the edit i am trying to do is the check box. it will allow edits if the grouping is not on but if it is not on then i will get many duplicates of client details.

so how do i set it up to allow edits but still only get one instance of each client detail.

View 7 Replies View Related

Forms :: Record Source Of Query Stopped Allowing Edits

Apr 10, 2013

My form with record source of query has stopped allowing edits.

I have reviewed property setting and do not understand what's going on.

View 2 Replies View Related

Forms :: Allow Edits In Design Mode

Jan 9, 2015

I have a form which was locked down (ie Allow additions, allow edit and allow deletions were all set to no) on the Form property. I want to change this to allow edits so in design mode I changed the Allow Edits property to Yes.

I then went to Form view and was able to update fields on the form. When I exited the form it asked me if I wanted to save the changes so I clicked yes.

On going back into the form I can no longer update the fields I could before. Going into design mode I can see that Allow edits on the form property is set to no again.

What is happening here. There is nothing in the on load or other events to set this to no, besides this shouldn't change the form property should it?

I know I can get around it my setting the property in the form itself but why is the property getting reset in the first place.

Access 2010.

View 11 Replies View Related

Launching A Form In Datasheet Mode

Jun 10, 2006

I have a form designed in DS mode. If I open it directly (double click on it on the Panel), it works fine

When opening it programmatically (from a button in another form) it shows just ONE record, in spite of having room enough for several records.

May I get some help to check what am I doing wrong?

thanks

View 2 Replies View Related

Forms :: Design Mode - Changing Tab Order Does Not Work

May 28, 2015

I am going into the Form Design mode

Click in the subform

I then set tab order by selecting the box and moving the field up.

Looks correct and then I click okay.

The subform does not change.

I go back into design mode, click in subform and select tab order and it looks correct????

View 2 Replies View Related

Form In Datasheet Mode : Name Of Textbox Is Caption Of Column ???

May 5, 2006

My form is in datasheet mode.

One of the textbox is called txtHours

When I access the form the column caption is "txtHours" !

As you can expect it looks ugly.

So to get a decent caption like "Hours" I am forced to set my textbox name to "Hours" !

As you can expect it goes against my coding standard to do that.

Beside I want the caption of some textboxes to include some non-standard letters such as `é' è' '!' ' ' etc. and if I put those in the textbox name it ruins the visual basic code !

View 2 Replies View Related

Modules & VBA :: Form To Display Subset Of Records In Datasheet Mode?

Feb 3, 2015

I created a form to enter the lookup data and build the SQL string to create a recordset in VBA that is a subset of the original data. Using the Form wizard I created a form that displays ALL of the records in that original table (actually a QUERY). What I want to do is open this second form but have it reference the recordset I built in VBA.

View 1 Replies View Related

Modules & VBA :: Controlling Fields In A SubForm Displayed In DataSheet Mode

Dec 2, 2013

I have a Form to Display Projects that has a SubForm displaying Sub-Projects related to them. The main Project Form has a Combo Box which allows a user to select a ProjectID to display. The SubForm has a ProjectID Field as well. When the Project ID is selected in the Main Form, only the appropriate Sub-Projects are displayed in the Sub-Form.

On the SubForm, there is a Field named ActionID, which uses the following VB Code to limit the availability of the Fields in the SubForm that apply to Dates. If the selected Action is Install, only Install related Dates should be available. Likewise, if the selected Action is Remove only Remove related Dates should be available.

Code:

If Me.ActionID.Column(1) = "Install" Then
Me.AssetInstallMonth.Enabled = True
Me.AssetInstallYear.Enabled = True
Me.AssetRemovalYear.Enabled = False
Me.AssetInstallMonth.Locked = False

[Code] ....

Everything seems to work as expected until there is more than one Sub-Project is the SubForm and they do not contain the same Action. In these cases, it appears as if the Sub-Projects in the SubForm are not being treated as individual records. If Sub-Project is Added or Modified to have an action of "Install", all records are treated as Install Records (only Install related Dates are available), regardless of their content.

Is there a way to update the properties for only the row that has been selected?

View 5 Replies View Related

Modules & VBA :: Datasheet Mode Form For Both Data Entry And Data Retrieval

Feb 9, 2015

I want to use the same form in datasheet mode for data entry and retrieval. When retrieving, all controls are disabled and locked. I am trying to enable and unlock them for modifying but that isn't working.

<code>
DoCmd.OpenForm "PO_Practice Data", , , , acFormEdit, acHidden

Forms![PO_Practice Data]!PO_Name.Enabled = True
Forms![PO_Practice Data]!PO_Name.Locked = False
Forms![PO_Practice Data]!Practice_Name.Enabled = True
Forms![PO_Practice Data]!Practice_Name.Locked = False

[code]...

View 3 Replies View Related

Modules & VBA :: Database Audit Trail To Work With A Form In Datasheet View

Aug 11, 2014

Is there way a to get this audit trail module to work with a form in Datasheet view? It works fine with a form in Single Form view; I can open the table where the audits are saved and everything looks good. But when implemented on a form in datasheet view, nothing happens. I don't get any errors and nothing is saved to the audit table.

Link : [URL] ....

Here's the vba code:

Sub AuditChanges(IDField As String, UserAction As String)
On Error GoTo AuditChanges_Err
Dim db As DAO.Database
Dim rsT As DAO.Recordset
Dim ctl As Control
Dim datTimeCheck As Date
Dim strUserID As String

[Code] ...

You call it in the BeforeUpdate event like so:

Code:
Private Sub Form_BeforeUpdate(Cancel As Integer)
'Track all changes made to the record
If Me.NewRecord Then
Call AuditChanges("Asset_ID", "NEW")
Else
Call AuditChanges("Asset_ID", "EDIT")
End If
End Sub

View 2 Replies View Related

Forms :: Subform Shows In Design Mode But Not In Form Mode?

Sep 22, 2014

I have several subform tabs and one that I have updated no longer shows up when I run the form on Form mode. The tab is there but no content or details of the subform

View 3 Replies View Related

DATASHEET --- Allow Design Changes: Design View Only DOES NOT WORK

May 18, 2007

I have a sub form in DataSheet view and I would like to lock the design so that the User should not change the layout

Even when I set the property of the Datasheet “Allow Design Changes: Design View Only” users are able to unhide the hidden columns and they can also change the size of the column by dragging the column end line



Does any one know how to lock the design of datasheet ( I am using this sub form datasheet for data entry but do not want users to change the layout)



Thanks
Rahul

View 1 Replies View Related

Populate A Datasheet And Extraction Of Data From Datasheet

Sep 1, 2007

Hi,

There is a requirement for
1)Populating a datasheet in a subform with a querystring which is dynamically built in VBA.This querystring is constructed based on the search criteria fields selected by the user in the main form.How can this be immplemented?

2_To click/double click a record in the datasheet,extract data and populate textfields,comboboxes with it which are in the main form.How is this achieved?Also,I can't find click events in a datasheet.

Pls let me know.
Thanks,
Savita

View 2 Replies View Related

Allow Edits To Combo Box

Aug 5, 2006

I want to allow users of a database to view data through a form but not to edit or delete it. I have set Allows Edits, Deletes and Additions to "No", but this causes the record-finding combo box I have to search for records to stop working. It works again if I enable Allow Edits, but then users can edit the data through the rest of the form. Is there a way I can allow edits to the combo box but not the rest of the form?

Gary

View 5 Replies View Related

Copied Db Won't Allow Edits Or Additions

Jul 2, 2007

I'm an Access idiot - please be kind :o

I made a little Access app for a friend, to do his invoices. Access wouldn't allow me to copy the db to a CD, but advised me to convert it to a Master. I followed all the instructions (honest!). Afterwards, I could burn his db to a CD and, on his computer, it opened but wouldn't allow edits or new records - not terribly helpful for an invoicing program :eek:

Since then I've tried creating a new admin in his name, re-setting all permissions, blah blah ... Basically, it looks like there is loads of help on securing a database but very little on un-securing it enough to be transferred to another PC!

The dang thing persists in allowing everything except edits & additions :confused:

I can't find out how to convert it back from a Master to ... what, a slave? :p
Even so, that wouldn't be the answer coz I'd be back at square1.

I use a PC running XP and Office 2003. My invoice-less friend has a PC with Win[NT]2000 and Office 2000. I converted the database to Access 2000. I am way out my depth here, but hoping you Access swimmers will be able to advise :cool:

View 1 Replies View Related

Forms - Allow Edits, Only When Requested

Nov 29, 2003

Hello,

i am relatively new to databases so this is a fairly basic question.....

I have a form. Within this form all records are locked as i do not wish users to change details. However i am told there is an option allowing the editing of existing records upon request. is this true?, as it would improve my form greatly

help would be much appreciated

thanks.

View 14 Replies View Related

Is There A Way To Count Number Of Edits?

Aug 10, 2005

Hello,

I have a db where a planner inputs a commit date. The problem lately, is that the commit changes day to day before the part if filled. Management is looking for a way to count the number of times a commit field has been updated? Is there a better way to do this? I have minimal VB knowledge. Please help!

Thank you in advance.

Jymaly

View 1 Replies View Related

Tables :: Check Box Edits

Dec 26, 2013

I have a check box field in table, i want this field to be work as if once checked cannot be unchecked again... no worries if done through queries, vba etc

View 1 Replies View Related

Printing Form That Allows Only Certain Edits

Jul 11, 2014

We have 3 different sizes 1x3 2x3 4x6..I want to make 3 separate forms that have multiple sections that can be chosen.Upon Request I can Supply each separate Label with arrows to show what fields need to be changed for each Sales order.For the 1x3 Labels we Make:

1. ETL
- We change model #
- We Change if the Labels Says Dry Damp or Wet Listed.

2. MISC.
-One Plain Txt Box that can be edited in the center

For the 2x3 Labels:

1.Box Labels
-Customer
-Item
-Sales Order#
-Shipping Location
(For the Box Labels I was thinking I have a Table that holds all this data and all I would have to make is a Query then a form)

2.ETL
-Change Model
-Wet Damp or Dry
3.CSA
-Change Model
-Change the Wattage (3 Different Places)
-Wet Damp or Dry
4.MISC
-6 Text Boxes (From top to Bottom not side by side)

4x6 Labels:
1.HID Box Labels
-Item
-Watts
-Color
-Medium or Mogul Based

View 4 Replies View Related

Help With Password-protecting Database For Edits

Jun 6, 2007

Hello,

I designed and distributed a database client to a bunch of users. They have asked me to password-protect it so that anyone can open the database and view the forms, but a password is needed to actually make any updates. I am trying to do this, but everything in Tools--Security is making my head spin. I have actually already managed to somehow lock myself out of my own database, although I have another copy.

How do I set the Workgroup Administrator Files so that they apply to anyone? It wants to put a separate file on my C: drive, but I don't use this database, I distribute it to people who do. (The server is on a share drive, can I put the Workgroup file(s) there?)

What settings do I modify to require *anyone* to need a password to update? Or is that even possible? I don't really want to break up the users into different categories.

If anyone could walk me through this process I would really, really appreciate it.

View 6 Replies View Related

Dont Allow Record Edits After A Certain Date

Feb 8, 2005

Hi all,
I have a form that is used to Enter and Edit records. At the end of a record is a "shipped Date". This is blank until the item ships. I want to make the entire record editable up until a date gets placed in this field. Is this possible? and can editing of the record still be done maybe at the table level?

Thanks

View 3 Replies View Related

Stopping Edits And Additions On A Particular Record

Apr 2, 2006

hi,

can anyone tell me how to stop additions and edits on a particular record in a form, plus the subform that the main form contains,
im trying to put the event behind the change of a text box, shipped date, so when its changed you cant add or edit the record which is the order.

cant anyone point me in the right direction?

cheers

View 1 Replies View Related

Override Form Allow Edits With Code??

Oct 20, 2004

Greeting,
I am still struggling with my sub-form.
Have managed to prevent edit by using the form properties.
However I have some fields which have to be updated after the form has been closed.
I tried putting the following code in the (Before Update Event) of date issued field for instance.

If Me![DateIssued]=Null then
Me![DateIssued].Locked=False
end if

Needless to say this didn't help.

I have some fields which cannot be filled in until a later date.
These are job records so I have date open, Technician name date completed plus a whole herd of other stuff which has to be filled in as the job progresses.

Any help will be most appreciated,
Brian.
Zimbabwe

View 6 Replies View Related

Forms :: How To Restrict Entry From Second Edits

Nov 22, 2013

How to restric forms entry to be restricted from second edits .. means if some one posted single entry one time and wanted to post second edited entry i need form to ask passoword. or not to be updated if not available the password option.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved