Unable To Add A New Record

Oct 18, 2015

Created three tables and one linking table, created two queries linked to a form to display the results and have now setup the code to display details. Next step to create a form to add a new record to the database.

Initially I used the form wizard, dragged the fields in and then viewed the form to see if I could add a record.However the new record button at the bottom is greyed out.I checked the Form properties and allow editions, deletions and edits are all set to yes.the source for the form is:

Code:
SELECT [tblGraves].[Plot], [tblGraves].[GraveNo], [tblGraves].[GraveID], [tblDeceased].[Forenames],
[tblDeceased].[Surname], [tblDeceased].[DayOfDeath], [tblDeceased].[MonthOfDeath],
[tblDeceased].[YearOfDeath], [tblDeceased].[DayOfBurial], [tblDeceased].[MonthOfBurial],
[tblDeceased].[YearOfBurial], [tblDeceased].[Age], [tblDeceased].[pp], [tblDeceased].[Notes],

[Code] .....

and it is a dynaset record set type.So I thought ( dangerous I know) use a query, I created the query setup the joins etc etc.I double clicked on the query and all my records were listed, I then selected the new record and the bottom but that is greyed out as well.

View Replies


ADVERTISEMENT

Unable To Save A Record Because A Record Is Required

Oct 31, 2005

I have a database set thus

Clients (the main form)

ClientsID (PK)
blah blah
Information and Referral (a check box)
blah blah
blah blah

ClientIR (the form that opens up when I & R is checked)

IR ID (PK)
ClientsID (FK to the above form)
Requests (a lookup referencing to IRCategory)

The code is set up so when the I R box is checked, form will open, and unchecking it will delete the I R record of that Client.

The problem is when the IR Box is already open, the request has been selected, I cannot save it as Access says a record is required in the Clients form. There are only two buttons, one goes on to next requests (one client can have more than one requests), other saves and closes.

The Client form is already coded so it will save the Client's record before opening the IR Form, and either button will save the IR record as well.

I had referential intergrity turned on. Turning it off only gave me weird results (I was able to input records, but Access didn't autofill the ClientID in the IR records, and looking at Clients returns a blank IR record)

What am I doing wrong?


Thanks

View 14 Replies View Related

Unable To Go To New Record

Jun 5, 2006

Hello everyone,

Can anyone help?

I have a data entry form via which I want to add records to a table. However, when I've entered data in the last field, the cursor remains there and the system just beeps. I added a command button on the form to go to a new record but when I click on the button i get the following message:-

You can't go to the specified record

You may be at the end of a recordset


Any suggestions??

Thanks

Will

View 10 Replies View Related

Unable To Add Record To A Table

Mar 2, 2007

I have a database that has been working properly for months...however, suddenly I am unable to add records to a number of my tables.

Each of 10 tables are related to a main table with a 1 to 1 relationship - the relationships have not changed.

Can anyone think of any table setting which I may have inadvertantly changed that would prevent additional records from being added?

I am still able to add to the main table and I have added several new tables also with a 1 to 1 relationship with the main table that are all working fine.

Thanks!

View 3 Replies View Related

Unable To Edit Record

Apr 29, 2008

Hey Guys and Gals,

I have a form that has a drop-down box. When the form opens, all the records are shown. Once a name is selected from the drop-down, only the records associated with that name are shown (a filter is created using code). The problem is that once the selection is made, I am unable to edit the records. I try to click in the fields but am unable to.

Any ideas? Thanks

View 5 Replies View Related

User Unable To Save Record?

Jan 25, 2007

I have a problem where a user (with what I believe are the proper security settings) cannot save a new record in a form. I have set the securities on the form and the related table and query to allow this user to create new records (Add/Run).

This user is able to access the form and enter the data, but it will not save. I have added a "Save" button to no avail.

When I log on as the administrator, it works fine.

Any Ideas?

Thanks in advance.

View 3 Replies View Related

General :: Unable To Add New Record To Table

Apr 28, 2015

I have been using my db for 3 years without this particular problem: I am now unable to add records to one of my tables - either through the form or in datasheet view. I have a patient table and a visit table. I put in the patient data using a form and then go to the visit form to add all of the visits for the month. I have never had a problem adding data to any of my tables but now I am unable to add data to the visit table. As much as I didn't want to I brought up last month's back up to enter the patients again. Before I did I checked to see if I could add visits - I could not. So I checked January's back up - same issue. I made no changes to the db before trying to add a visit .

View 10 Replies View Related

Modules & VBA :: Unable To Add Hidden Information To A Record

Mar 3, 2015

I'm trying to add hidden information to a record and need to know the best way to do it.

I have a visible table that all users enter data into using a form.

I also have a hidden table that contains 2 fields "linked Table ID" and "notes"

I have a box at the top right of my form which is white (I also have a white background so it's impossible to see).

When you click the box it changes a textbox on my form visible property from false to true.

then I plan to use a separate button that the user currently uses to save a record to store ID number and hidden textbox information in the hidden table but I'm sure how to do this.

Finally I will use a hidden query which will display all the fields from both tables using the linked Table ID from the hidden table and ID field from the non hidden table.

So i have 2 questions:

1 how do I save information the user entered into a form created from one table into a different (hidden) table

2. Is this the right approach to this problem?

View 3 Replies View Related

Forms :: Unable To Print Current Record In The Form

Jun 4, 2014

I tried to follow the Allen Brown print the current record in the form and its not coming up. I can print all of the records but not the current.

View 3 Replies View Related

Modules & VBA :: Unable To Create Duplicate Record On Subform

Nov 29, 2013

I am trying to create duplicate records from a main form frmManagers which has a subform frmSubMeasure. I have placed the duplicate button on the main form. It creates a duplicate of the main form data and gives me the option to add new record to the sub. I want the duplicate to be created on the sub form for me to just edit the scores.

I don't know how to pass the sub form data to be duplicated I thought the append query which I used would update the tblSubMeasure table which created the subform frmSubMeasure.
In the sub the append query do update the form with the new MeasureID from the mainform and the form is available to enter new data. I want the subform data to be duplicated as well

In the query I included all the fields from the tblSubMeasure table and this is appended to the same table tblSubMeasure and I place a tag on the MeasureID using "[Forms]![frmManagers].[Tag]"

Code:
Private Sub btnDuplicate_Click()
Dim dbs As DAO.Database, Rst As DAO.Recordset
Dim F As Form
'Return Database variable pointing to current database.
Set dbs = CurrentDb
Set Rst = Me.RecordsetClone

[Code] .....

View 1 Replies View Related

Forms :: Unable To Print A Report From A Record In Form

Oct 14, 2013

Why I cannot print a report using a single record in a form using Access 2007.

I have added the button, I am using the following code:

Private Sub cmdPrintRecord_Click()
Dim strReportName As String
Dim strCriteria As String
strReportName = "Receipt"
strCriteria = "[ID]='" & Me![ID] & "'"
DoCmd.OpenReport strReportName, acViewPreview, , strCriteria
End Sub

However when I click the button nothing happens. I have attached the database ...

I am using the Contacts Entry form, and when I am on a record that someone has paid I want to be able to print from the Receipt report that has a simple formed up letter.

View 8 Replies View Related

Unable To Update A Field In Record In My Form After Selecting From Comboox.

Apr 25, 2005

Trying to update a field in a record in my form after selecting from a comboox.

This an orders form with a record per row for order items. I select the product from a dropdown list which is populated by a dynamic query from the afterupdate event on another combo. When I do the selection access reports the following error:
Runtime error 3331
to make changes to this field, first save the record


Debug takes me to the line :
Me!product_id = DLookup("product_id", "products_table", myvar)
from :
[code]
Private Sub comboProd_description_AfterUpdate()
Dim strFilter As Integer

comboProd_description.Value = comboProd_description.Column(1)

myvar = comboProd_description.Column(0)



Me!product_id = DLookup("product_id", "products_table", myvar)

[end code]

I'm lost as to what to do (no such thing as beginners luck!!). I'm not even sure if the error is from the combo box or from the field that it is trying to update (product_id)

Thx for looking

Kev.

View 1 Replies View Related

Unable To Match If User Already Started A Record Using Date And Username

Aug 1, 2014

I am trying to match if a user has already started a record using the date and username. I have written the following code but I keep getting a error 94 about null. I know its an issue involving the date part. why this isn't working.

Code:
DLookup("TimeSheetID", "TimeSheet", "EmployeeID=" & Nz(Me.ListEmploy.Value) & " AND TimeSheetDate=#" & Date2 & "#")))
The full code

Code:

Dim Date2 As Date
Date2 = Date
If (Not IsNull(DLookup("TimeSheetID", "TimeSheet", "EmployeeID=" & Nz(Me.ListEmploy.Value) & " AND TimeSheetDate=#" & Date2 & "#"))) Then
lngEmployeeID = DLookup("TimeSheetID", "TimeSheet", "EmployeeID=" & Nz(Me.ListEmploy.Value) & " AND TimeSheetDate=#" & Date2 & "#")
DoCmd.OpenForm "frmTimeSheetMain", , , "TimeSheetID=" & Nz(lngEmployeeID), , , "NoTimeSheetID"

View 5 Replies View Related

Forms :: Unable To Edit / Save Record - Runtime Error 2107

Apr 30, 2014

My database was working fine. Now, if I have to save or edit a record, I get a message Run time error 2107. The value you entered does not meet the validation rule defined for the field or control. I am able to enter and edit new records in the table. I did not change any validation in form. Then it goes to debug mode and highlighted this code (me.recordsource=Listsql - is highlighted)

Private Sub ListSearch_Click()
Dim dBS As Database
Dim Rst As Recordset
Dim Listsql As String
Set dBS = CurrentDb()
Listsql = "Select * from MasterData where employeeid ='" & [Forms]![MASTERFORM]![ListSearch] & "'"

[Code] ....

View 3 Replies View Related

Forms :: Unable To Get Preview Selected Record Function To Pull UniqueID Field

Aug 22, 2014

I am attaching a picture of what I am talking about as this is going to get confusing...at least it is for me.

I have a Navigation Form that holds 7 tabs that pull reports or data entry forms.

I am trying to get the Preview Selected Record function to pull the UniqueID field from the Data Entry Form and generate a report for printing.

I can search by UniqueID in the data entry form with no problem, it is linked to two subforms with no problem.

Here is the code I have used most successfully:

Code:
DoCmd.OpenReport "rpt1", acViewPreview,, "UniqueID =" & Forms!MainForm!NavigationSubform.Form.UniqueID

This actually works, but every time the print preview is closed, it crashes Access. I have researched this particular issue, and some of the solutions I have read and tried lead to "that method is not allowed or supported" errors or Run-Time 438 errors.

View 9 Replies View Related

Unable To Create MDE

Sep 5, 2005

I have created access2K application with 4 clients (forms+query+macro+reports) residing on workstations and database on server. I have created MDE of 3 frontends but unable to do so on one computer. When I goto Tools->Database Utilities->Make MDE File... (Disabled)
Its disabled I cannot continue so no error message. Any idea?
Prodigy

View 2 Replies View Related

Unable To Upload Db????

Jan 14, 2008

I am unable to upload a zipped copy of my database. I just get this message:

--------------------------------------------------------------------------

Invalid Post specified. If you followed a valid link, please notify the administrator

The file is 134k...

Contacted admin as suggested
-------------------------------------------------------------------------
Anyone?

Thanks,
Dave

View 5 Replies View Related

Unable To Add New Records

Apr 7, 2006

Hiya

I have created a query (Weekend) from 2 other querys (BCV & Daily Sales). The BCV & Daily Sales queries work fine but when they are added together I am unable to add new records. I only have 1 line of data that can not be updated.
I thought it was a relationship problem and have been and double checked all the relationships but can't see an error.
Heres a screen shot if it will help!

Thanks in advance

http://img364.imageshack.us/img364/2458/clipboard022zc.jpg

View 5 Replies View Related

Forms :: Unable To Get Sum

Apr 6, 2014

I have main form("client Status") which contains information about client order and showing the calculations. The subform is also there for receiving the payment from client. I would like to get the sum of amount received(from sub from) and would like to show it on main form that how much amount received from a client. As payment received from client the form should be updated automatically by showing the sum of amount received.

how to take sum of particular field in subform using vba and storing it in main form field.the forms are created from tables and there is no unbound field.

View 14 Replies View Related

Unable To Save Changes

Dec 1, 2014

The Word attachment describes recent problems I have encountered, most significantly, the inability to save changes on certain forms. the questions, listed at the end of the document, are:

a) How can I identify which objects are corrupt other than assuming it is only those that wont save changes?

b) What is the best way to overcome the inability to make form changes on certain forms and reports?

c) How or can I continue to use the Students Extended query with different criteria for different forms, other queries or reports. Can I create (advanced) filter queries and use as a record source for each as needed?

d) Do the messages about the PC making changes or placing the database in states have any bearing and why is that happening?

e) What causes and how can I prevent messages that fields could refer to more than table (see 2, D, vi)?

View 7 Replies View Related

Getting An Error Unable To Create Mde

Jun 10, 2005

Unable to create MDE file WHY?????????????????????

View 3 Replies View Related

Unable To Link/import

Dec 23, 2005

Not sure if someone has come accross this probelm but I am unable to link/import tables from excel or text files.
I am able to import tables from other databases but as soon as I want to import an excel file it seems that the import wizard simply doesn't exist.
re-installed office several times but to no avail.
Access/office 2003 running on windows 2000 sp 4
Microsoft help is no of use.

I am also running 97 on my pc and have no problems here.
:confused:

View 1 Replies View Related

Unable To Import A From From Another Database

May 31, 2006

I have two databases. One is 'live', one is for development. Once i get something working in the latter, I import it into the former. This has been working fine for just over two months.

Today, however, i'm trying to import a form and get one of the following messages:

"The search key was not found in any Record"

"No current record"

I'm unable to import the form.

Any ideas what could be causing this?

View 2 Replies View Related

Unable To Compact Database

Aug 22, 2006

Hi,

I have created a database with approx ten tables with many queries (make table and append and delete queries). I need to compact this database as I would normally do (usually deal with databases of 500MB and more with no issue) however after over an hour I still get the message 'not responding'. I have tried creating a new one from scrath and get the same issue. Can anyone help please?

View 3 Replies View Related

Unable To Make Mde File

Dec 5, 2006

Hi,

I'm using A2003 to try and create an mde file but it is not playing ball. The mdb is compiling fine with no errors but when I click on "make mde file" and supply the path/filename, Access appears to try to open the mdb again and prompts me with a security warning saying that 'opening this type of file may be harmful.....etc'. The mde does not get created. Any ideas?

View 3 Replies View Related

Unable To Add Additonal Relationship

Mar 25, 2007

I have a large database (many tables) and all are joined to one main table with a 1-1 relationship.

When trying to join a table I received an error msg that there are too many indexes on the main table and to delete some. Of course I can't do that...any suggestions?

View 14 Replies View Related







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