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 Replies


ADVERTISEMENT

Modules & VBA :: Unable To Add Records To Subform

Nov 16, 2013

I have created three forms using three tables tblUser, tlbMeasure and tblSubMeasure. The tblUser is linked to the tblMeasure table via UserLogin and tblMeasure is linked to tblSubMeasure via MeasureID. The forms are created with frmMainMeasure being the main form and frmMeasure6 a subform and frmSubMeasure a sub with frmMeasure6.

I want to be able to add sub measures that will be linked to each MeasureID and each MeasureID link to each user via UserloginID. The forms load the data in the sub forms but when I try to add sub measures using a button I added on the frmMeasures6. The button works when I try work on the form fine but when I try via the main form I am not able to add or view other records within the table.

When I click the Add button I want to be able to load back the same MeasureID number in fmrSubMeasure to ensure that it is linked to the same measure and the MeasureID is linked to the same UsrrLoginID.

The code is included below and I've attached the file as well.

Private Sub cmdAdd_Click()
If Me!frmSubMeasure.Form.Dirty = False Then
End If
Me!frmSubMeasure.SetFocus
DoCmd.GoToRecord , , acNewRec

[Code] ....

View 1 Replies View Related

Queries :: Unable To Copy Records Into Another Table

Sep 7, 2013

I'm using Access 2007.

I have a button on a form that when clicked, does the following:

I have a table called [Workorder Parts] that has 128 records in it with Fields named WorkOrderPartID (Autonumber), WorkorderID(Number), PartID(Number), Quantity(Number), UnitPrice(Currency), Notes(Memo), KitID(Number).

I want to copy records into another table called [tKitsWorkorderParts] that has the identical structure based upon a value in the field WorkorderID. For testing purposes let's assume that the field contains the value "12". There are 28 records in the table that have the value set to "12"

If I hardcode the value "12" into the following SQL statement, it finds and copies the 28 records correctly.

DoCmd.RunSQL "INSERT INTO [tKitsWorkOrderParts] SELECT * FROM [WorkOrder Parts] WHERE [WorkOrder Parts.WorkOrderID] = 12"

so far so good.....

Now, on the form there is a Text Box called WorkorderID that contains the value "12".

If I change the code to the following, I get all 128 records instead of just the 28 I am expecting:

DoCmd.RunSQL "INSERT INTO [tKitsWorkOrderParts] SELECT * FROM [WorkOrder Parts] WHERE [WorkOrder Parts.WorkOrderID] = WorkorderID"

I have inserted a few MsgBox displays to display the value contained in WorkorderID and it shows "12"...

What am I doing wrong???

View 2 Replies View Related

Modules & VBA :: Unable To Add Records To Form And Table

Jul 23, 2015

I was updating my records by filling a form and entering the data's into a table but all of a sudden i couldn't add data to form and table..

View 9 Replies View Related

Forms :: Unable To Edit Records Using Combo Box

Mar 29, 2013

I have setup a ComboBox on a form, Listed the PK of the table as the control source. Inserted the PK and many other field as the row source. When I go to select a record I get the error "control can not be edited, it's bound to a auto number field, "Asset_ID"

View 6 Replies View Related

Modules & VBA :: Unable To Create Duplicate Records On A Subform?

Nov 20, 2013

I am working with a sub-form where once a staff member enters there sub measure I would want to create a duplicate of that record. The problem I am having is that once you enter the sub-form and click the duplicate button it creates a duplicate of the record selected but overwrites the first record in the table. I want it to create a new SubMeasure Number which is the primary key and assigns the record the next available number.

Also if I try to add another record after one has been added I get runtime error "3021" - No current record. I would have to close the form and reopen for it to be able to add again.

I have attached the code below:

Private Sub cmdDuplicate_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 4 Replies View Related

General :: Unable To Edit Records - Fields Are Locked

Jun 11, 2013

I have a user that is unable to edit records, He can click in the fields but he could not delete or enter data in the fields. He has the ability to edit records but its fields are locked. I created a split database and created a secure front which I distributed it to multiple uses. The other users front end is working fine, expect for the one.

View 2 Replies View Related

Unable To Import Series Of Records From Excel Into Table

Oct 16, 2012

I am trying to import a series of records from Excel into a table in Access 2010. The field names in the Excel table match the field names in the Access table. The field formats are the same as well (both set to numbers).

I am receiving an "unparsable record" error for all fields in the Excel file that are being entered into fields in Access that are 'lookup' fields that allow multiple entries.

The Exel fields have been filed in with the 'numbers' that correspond to the correct 'lookup' selections. There is only one item in the excel field -> while access will allow multiple entries for the field, I for the records I'm importing I only need one.

For the fields that are 'lookup' but allow only one value the excel data is being imported and displayed correctly in Access.

Do I need to format the fields that are matching to multiple entry fields differently or in a special way?

View 7 Replies View Related

Forms :: Unable To Navigate Between Records - Custom Save Button Not Saving

Jul 22, 2013

I've been working on a database for work for the last few weeks and this forum has been a Godsend many times over, but now I have a problem that I can't find any reference to.

Using Access 2003, I have a form that uses 3 cascading combo boxes in the header to find a unique record, and a command button that brings up the rest of the record into unbound fields in the body of the form.

It works fine for finding records, but whenever I enter/change data on it, the record doesn't save. The navigation buttons at the bottom don't work - the Next/Previous record buttons are disabled, and the First/Last Record buttons do nothing.

Navigation buttons are enabled/activated in the properties.

I tried getting around this by creating a Save Record command button - first using the wizard, then using VBA code DoCmd.RunCommand acSaveRecord as advised by [missinglinq;696351], but this still doesn't save the changes.

View 4 Replies View Related

Modules & VBA :: Unable To Get All Records By Excluding Numrows Argument In Getrows Method?

Jul 31, 2014

Why I am not able to get all records by excluding the Numrows argument in the getrows method?

Sub Test2()
Dim myrset As Recordset
Set myrset = CurrentDb.OpenRecordset("SELECT * FROM Holidays;")
myrset.MoveLast
myrset.MoveFirst
MsgBox Excel.Application.WorksheetFunction.Networkdays(#8/1/2014#, #8/31/2014#, myrset.GetRows(myrset.RecordCount))
MsgBox Excel.Application.WorksheetFunction.Networkdays(#8/1/2014#, #8/31/2014#, myrset.GetRows())
End Sub

Second MessageBox is giving a wrong value.

Is it a mandatory one? Or Do I have to do some ritual like (Movelast) before that?

(Holidays table is just having the values in the array only ie. #08/15/2014# and #08/29/2014#)

View 10 Replies View Related

Queries :: Unable To Make Crosstab Query To Filter Records From Table

Sep 17, 2013

I am trying to make a crosstab query to filter my records from my table.

Here is the scenario.

I want to make a query that will return me my Rep ID, Rep Name, his Bonus and his GV-Q (another value) based on every month.

Now I make a crosstab query and here is the syntax.

Code:
TRANSFORM First([TBL Qualification Data India].[Bonus Rank]) AS [FirstOfBonus Rank]
SELECT [TBL Qualification Data India].[Rep #], [TBL Qualification Data India].[Rep Name]
FROM [TBL Qualification Data India]
GROUP BY [TBL Qualification Data India].[Rep #], [TBL Qualification Data India].[Rep Name]
PIVOT [TBL Qualification Data India].Period;

This resulted in a column for Rep Number, one column for Rep Name and columns for all the period of Bonus I am going to have., so there are basically 9 columns for this till this month for each month and bonus value shows as values for all these month (period) columns.

Now in this same syntax, I want to have my Rep GV-Q value as well as his bonus to show in the same query, I read and came to know that it's not possible to directly have two values or two column headings in a crosstab query, I must have to make a new crosstab query and then use a normal select query to display records from these two crosstab queries, so I went ahead and made a new similar but with one value field changed crosstab query and here is the syntax for that.

Code:

TRANSFORM First([TBL Qualification Data India].[GV-Q]) AS [FirstOfGV-Q]
SELECT [TBL Qualification Data India].[Rep #], [TBL Qualification Data India].[Rep Name]
FROM [TBL Qualification Data India]
GROUP BY [TBL Qualification Data India].[Rep #], [TBL Qualification Data India].[Rep Name]
PIVOT [TBL Qualification Data India].Period;

Now after this how to make a select query to show the data from these two queries.

I can make a normal query based on these two crosstab queries and manually add all fields and then I would have my result but then after every month I have to manually enter these two extra month details from both crosstab queries to my final query and that's not what I want.

Is there any method to do this by gathering data from these two queries into one and achieve the result I want or if there is any other approach to tackle this.

To explain my database and my need for output, I am attaching few pics to make things easier if I made some mistakes in explaining my problem. It's included in attached zip since I am not able to post images or links.

View 5 Replies View Related

Tables :: Unable To Create A Database By Compiling Records From Multiple Excel Sheets

May 22, 2013

I am trying to create a database by compiling records from multiple excel sheets. however, since most of the clients still uses the excel sheets to enter records, I am thinking if it's possible to create a linked table in access from these excel sheets that are hosted on an online server.

also is it possible to merge multiple linked tables together? if they have the same field range, so they will append when the linked tables gets updated.

View 3 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 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

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 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 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 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 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

Unable To Search For Critera

Mar 17, 2008

Hi everyone

I have a database that I built myself and use on a daily bases for keeping track of customers and there service records for a small sized plumbing and drainage firm. The database has a function that is designed to automatically search for upcoming boiler services that are due or over due which works fine, However we use acronym's to describe some routine jobs such as B/S (Boiler Service) or H/R (Heating repairs) which speeds up data entry. The problem is that Access refuses to search for the acronym's, I have tried basic text search critera's which brings up full words fine such as "Smith".
Is there a way of searching for the acronym's like B/S?

Thanks in advance for any help.

View 4 Replies View Related







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