473,403 Members | 2,359 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,403 software developers and data experts.

Combos with Tens of Thousands of Records

I'm trying to reproduce this example by Allen Browne, available on his
website (excellent resource, BTW) to work. Available at
http://members.iinet.net.au/~allenbrowne/ser-32.html

The piece of code that's giving me problems is:
***************
Private Sub Suburb_AfterUpdate()
Dim cbo As ComboBox
Set cbo = Me.Suburb
If Not IsNull(cbo.Value) Then
If cbo.Value = cbo.Column(0) Then
If Len(cbo.Column(1)) > 0 Then
Me.State = cbo.Column(1)**********
End If
If Len(cbo.Column(2)) > 0 Then
Me.Postcode = cbo.Column(2)**********
End If
Else
Me.Postcode = Null**********
End If
End If
Set cbo = Nothing
End Sub
***************

Specifically, Access doesn't like Me.State or Me.Postcode. I get:

Compile error:
Method or data member not found

I'm probably being thick, but I've been fiddling and Googling for a couple
of hours to no avail.

Thanks for any hints.

Regards,

Robin
Nov 13 '05 #1
2 1639
Robin S. wrote:
I'm trying to reproduce this example by Allen Browne, available on his
website (excellent resource, BTW) to work. Available at
http://members.iinet.net.au/~allenbrowne/ser-32.html

The piece of code that's giving me problems is:
***************
Private Sub Suburb_AfterUpdate()
Dim cbo As ComboBox
Set cbo = Me.Suburb
If Not IsNull(cbo.Value) Then
If cbo.Value = cbo.Column(0) Then
If Len(cbo.Column(1)) > 0 Then
Me.State = cbo.Column(1)**********
End If
If Len(cbo.Column(2)) > 0 Then
Me.Postcode = cbo.Column(2)**********
End If
Else
Me.Postcode = Null**********
End If
End If
Set cbo = Nothing
End Sub
***************

Specifically, Access doesn't like Me.State or Me.Postcode. I get:

Compile error:
Method or data member not found

I'm probably being thick, but I've been fiddling and Googling for a
couple of hours to no avail.


For Me.State and Me.PostCode to work you need to have Controls on the form named
"State" and "PostCode" respectively OR fields in the underlying RecordSet with
such names. Do you?

If you have no such controls, but do have such fields, try using Me!State and
Me!PostCode instead. Access sometimes doesn't find field names with the dot but
will with the bang. This usually suggests a corruption of the form.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #2

"Rick Brandt" <ri*********@hotmail.com> wrote in message
news:36*************@individual.net...

For Me.State and Me.PostCode to work you need to have Controls on the form
named "State" and "PostCode" respectively OR fields in the underlying
RecordSet with such names. Do you?

If you have no such controls, but do have such fields, try using Me!State
and Me!PostCode instead. Access sometimes doesn't find field names with
the dot but will with the bang. This usually suggests a corruption of the
form.


Rick,

It looks like my problem was in fact my misunderstanding of Allen's example.

I placed some text boxes on the form with the names State and Postcode and
of course it worked.

Thanks for your quick response.

Regards,

Robin
Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: R. Alan Monroe | last post by:
Subject says it all... what's the fastest way to get many thousands of records to the client? I'm trying to sketch out a traditional 3 tier client-server system. Multiple clients would make...
3
by: Steve | last post by:
I have a query that returns raw tick data from a table. Unfortunately after even a few days there are hundreds of thousands of rows so the following query is not efficient. SELECT * FROM...
1
by: Keith | last post by:
A2003, Xp Pro. I've designed a form which contains 6 of combos. Three on the left are set up to select fields from a query, three on the right are set up to select values from the corresponding...
1
by: bredal Jensen | last post by:
Hello, I'am experiencing that Asp.net can not handle sorting of datagrid when the number of items exceed a few thousands. Is anyone aware of this problem? The sorting works fine when the number...
6
by: Gary Frank | last post by:
What are the ramifications if I were to instantiate an object tens of thousands of times and add them to an array? Or hundreds of thousands of times? Do you know if the act of instantiating a...
13
by: comp.lang.php | last post by:
I have currently devised a way to display up to 3,000 records via PHP/HTML by using pagination techniques that stuff an entire DB query resultset into a $_SESSION object to use within pagination. ...
2
by: Gordowey | last post by:
Hi all,...I have an special situation, that I can not solve.... I need some help This is my scenario: 1.- I have n-combos (showing available rooms from an hotel) in my web-page. The number of...
4
by: LetMeDoIt | last post by:
Greetings, I'm using ASP to retrieve from MSSQL and I then populate a table. After several months of successfull retrieves, this same code now bombs out. It turns out that if I clear out from...
11
by: Zebra Code | last post by:
hi all i should copy the items of a combo to n other combos. it's not a cycle: With cboColor1 .Items.Add("ffffff") .Items.Add("cecece") ... .SelectedIndex = 0
3
by: sberry | last post by:
I have three arrays... for instance $a = array('big', 'small', 'medium'); $b = array('old', 'new'); $c = array('blue', 'green'); I want to take those and end up with all of the combinations...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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.