473,405 Members | 2,176 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Run Time error '383' 'Text' property is read-only

lotus18
866 512MB
Hello everyone!!!

I have a problem in retrieving starttime and the endtime values. Can anyone help me to solve this problem? Here's my sample codes:

Expand|Select|Wrap|Line Numbers
  1.  
  2. '==================
  3. from frmSchedules
  4. '==================
  5.  
  6. SetConnection
  7. CheckConnection rs
  8.     rs.Open "Select * From LoadSchedules Where ScheduleID='" & ID & "'", _
  9.     adConnection, 1, 1
  10.     With ScheduleEntry
  11.         .txtScheduleID.text = rs!ScheduleID
  12.         .txtCourse.text = rs!Courses
  13.         .txtSection.text = rs!Sections
  14.         .txtSemester.text = rs!Semester
  15.         .cboSubjectCode.text = rs!SubjectCode
  16.         .txtDescription.text = rs!Description
  17.         .cboRoom.text = rs!Rooms
  18.         .cboDay.text = rs!Days
  19.         .cboStartTime.text = rs!StartTime   '<-----Run Time error '383' 
  20.         .cboEndTime.text = rs!EndTime      '<-----Run Time error '383' 
  21.         .Show 1
  22.     End With
  23.  
  24. '==================
  25. from frmScheduleEntry
  26. 'adding items to the starttime and endtime comboboxes
  27. '==================
  28.  
  29. Sub LoadStartTime()
  30.     Dim t As Date
  31.     Dim i As Integer
  32.     t = CDate("07:00:00")
  33.     Do
  34.         t = DateAdd("n", 30, t)
  35.         cboStartTime.AddItem Format(t, "h:mm AM/PM")
  36.         i = i + 1
  37.     Loop Until i >= 26
  38. End Sub
  39.  
  40. Sub LoadEndTime()
  41.     Dim t As Date
  42.     Dim i As Integer
  43.     t = CDate("07:30:00")
  44.     Do
  45.         t = DateAdd("n", 30, t)
  46.         cboEndTime.AddItem Format(t, "h:mm AM/PM")
  47.         i = i + 1
  48.     Loop Until i >= 26
  49. End Sub
  50.  
I check the data of start time and the end time in the table and it matches with the items on the comboboxes. I don't know why this error occurred.
Nov 20 '07 #1
2 17790
AHMEDYO
112 100+
HI..

i think that you trying to set Text property value in Combo Box control, then this error appear because you set Style property to "2" = DropDownList, this style disallow change of text property, you can change style to any other style, or instead if your data withing the combo box list you can use ListIndex property to select this item.


Best Regards
Nov 20 '07 #2
lotus18
866 512MB
HI..

i think that you trying to set Text property value in Combo Box control, then this error appear because you set Style property to "2" = DropDownList, this style disallow change of text property, you can change style to any other style, or instead if your data withing the combo box list you can use ListIndex property to select this item.


Best Regards
Hi

I tried these codes to my other programs and it work. My combobox style property = 2 (DropDownList) and the items of the combobox was retrieved from the database. But now, the items from the combobox are adding during run time. Well, I guess I need to use the ListIndex Property
Nov 20 '07 #3

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

Similar topics

0
by: Frederick Page | last post by:
Hi everybody, I'm trying to open Control Center for UDB 7.2, FP7 on a WinNT 4.0 machine, but it "silently" just crashes. db2diag.log shows strange entries: 2004-02-02-16.36.59.809000 ...
1
by: Chris | last post by:
I built small C# Web and Web Service applications in a training class last week. The applications worked in the class, but when I tried to run them again over the weekend, they both bombed....
2
by: Glen | last post by:
I'm working on a custom assembly and I'm trying to figure out the best approach to handling known constraints within the assembly, once compiled, to alert the developer at compile time of a...
4
by: Chris | last post by:
I posted this in the C# language group, then thought it might be more appropriate in this group. I would not cross-post except I want the answer so badly. I built small C# Web and Web Service...
2
by: | last post by:
I have gotten the following error in trying to get totals to come out on a footer. Server Error in '/test' Application....
4
by: Alan Silver | last post by:
Hello, I'm trying to use an ArrayList to do data binding, but am getting an error I don't understand. I posted this in another thread, but that was all confused with various other problems,...
0
by: Ed Bick | last post by:
Well, I read today about how I could set the dropdown value to False to change the control from presenting a Calendar to cycling through the times. Before getting that, I developed a custom Time...
0
by: phil.stollery | last post by:
Hi, I've currently setup a local user as described in: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/SecNetHT01.asp This users has been created on the remote...
11
by: Phil | last post by:
Hi, I've currently setup a local user as described in: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnne...
6
by: Mack Bolan | last post by:
Please can some one can help me resolve this bug? Object variable or with block variable not set, Option Explicit Private mVehicles As CVehicles Private mstrKey As String 'Holds...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...

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.