473,770 Members | 6,322 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error 2448 - But I dont see why?

31 New Member
Hi all,

I have been banging my head against the wall with this one for a while so I now turn to you all for a pointer.

I am currently having trouble with error 2448 “You can't assign a value to this object”.

It is driving me mad as I cant see why it wont let me assign a value.

Overview:

On the main form I have a combo box which allows the user to select which project they are on. They can then enter info into a subform within the main form. Each of the entry’s needs to be married to the selected project, I used:

If IsNull(Me.Trave lDate1) Then ‘check if there is any data
Exit Sub
Else
Me.TravelProjec tNo1 = NewProjectNo ‘update project No
End If

(NewProjectNo is a public string)

This is when it all goes south. If I enter data into a new record its works perfectly. If I attempt to modify info on the subsheet and update the record (needed before a print/preview) it informs me that TravelProjectNo 1 cannot have a value assigned to it (error 2448). In debug, if I force it to continue, it assigns a value to the object despite what it says??

Better still if I don’t modify any data in the subform but I select a different project from the combo box and update, it updates without complaint??

Any help is most welcome as I am at a complete loss!
Nov 27 '06 #1
3 3741
NeoPa
32,573 Recognized Expert Moderator MVP
You can set it to an existing value in the list I believe.
Otherwise it will complain. Only ListBoxes have the option of allowing the operator to select an item not already in the list.
If you add a record to the underlying (bound) dataset, then you need to requery the ComboBox before accessing it.
Nov 27 '06 #2
philelpko
31 New Member
Cheers NeoPa,

Will give that a try!
Nov 28 '06 #3
NeoPa
32,573 Recognized Expert Moderator MVP
No problem.
Hope it works for you.
Nov 29 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

6
5420
by: jason | last post by:
I am picking up an error message on a straightforward INSERT - do I need an optimistic-type to get this working....here is is the error: Microsoft JET Database Engine error '80004005' Operation must use an updateable query. /catamaranco/accounts/email_inc.asp, line 264 Set cnn = CreateObject("ADODB.Connection") strCon = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("../database/acc.mdb") '//This one is for Access...
15
1377
by: M P | last post by:
What does this mean? I am accessing an ASP page that queries Access Database thru fileDSN. I'm using IIS 5.0 Win2K SP4 Microsoft OLE DB Provider for ODBC Drivers error '80004005' General error Unable to open registry key 'Temporary (volatile) Jet DSN for process 0x444 Thread 0xfe4 DBC 0x5200024 Jet'.
3
2420
by: Alex Stevens | last post by:
I'd already posted this in microsoft.public.dotnet.framework.windowsforms and microsoft.public.dotnet.framework.windowsforms.controls to no avail so apologies for the cross-posting. Hi, I'm writing a usercontrol which displays the typical two listboxes and the ability to move items from one to the other. The listboxes are populated with my custom objects (SwapItem), which simply
10
5798
by: DataBard007 | last post by:
Hello Access Gurus: I use Win98SE and Access97. I just built a simple Access97 application which holds all contact information for my personal contacts, such as first name, last name, address, city, state, etc. When the user wants to search for a particular record, he does two things: 1. On the form is a text box on which he enters the text he is searching for.
10
5724
by: MLH | last post by:
Anybody know why I might be getting error #2109 during the procedure below? It does not occur on 2 desktops, but did on a laptop. The error said: "The following unexpected error occurred in Sub OwnerZip_AfterUpdate, CBF on frmOwnerEntryFrm. 2109: "There is no field named 'OwnerCity' in the current record." Private Sub OwnerZip_AfterUpdate() On Error GoTo OwnerZip_AfterUpdateErr
6
1376
by: Tamir Khason | last post by:
I recieve the very strange error while compiling project: "object reference net set to the instance of the object" in line 0 !!! The first lines in this .cs are using System; using System.Collections; using System.ComponentModel;
2
3774
by: Phillip Galey | last post by:
I have an object called Place which contains only string properties and has the <Serializable()> flag before the class name declaration. I also have a collection object called Places, which is implemented using Inherits System.Collections.Specialized.NameObjectCollectionBase and also has the <Serializable()> flag before the class name declaration. In the calling code, I'm successfully serializing the object to an XML file using a...
1
2587
by: AH | last post by:
Hi, I used a dataTable to bind to datagrid. I setup code to handle the rowchanging event but whenever I change from one row to another in the datagrid, the datagrid changed to a white box with a big red-crossed, an error message box with titled "Error when committing the row to the original data store" and prompted "no value at index 0, do you want to correct the value?" I suspect some bugs in VB.NET (2003) since column changing , column...
5
1778
by: bluemoon9 | last post by:
Hi all, I have a listbox which lists all the accounts, and I would like to handle error when user did not select any account in the list box but then click on "view/edit" button. The following is my code. However, I keep on having the blank account form open on the top of the error message. Any idea? thanks Private Sub cmdEditAcct_Click() Dim Title As String Dim Msg As String On Error GoTo Err_cmdEditAcct_Click DoCmd.RunMacro...
0
9591
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9425
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10225
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10053
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10001
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8880
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7415
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
3969
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2816
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.