access vba combo box
Microsoft Office TrainingThe UK's Number 1 for Microsoft Office Training Sitemap add this page to your favourites/bookmarksBookmark page
 
view a printable version of this pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Access VBA Training and help » Access VBA Combo Box

Access VBA Combo Box

resolvedResolved · High Priority · Version 2003

replyReplyTue 27 Apr 2010, 16:01Delegate Nicola said...

Access VBA Combo Box

I am trying to duplicate a box used on an old database within a new one and I have set all the parameters to be the same, size etc, but when I try to use the combo box on the form in form view I get the following message:

The record source '~sq_cfrm:PartOne~sq_cCombo46' specified on this form or report does not exist

You misspelled the name, or it was deleted or renamed in the current database, or it exists in a different database.

In the Form or Report's Design view, display the property sheet by clicking the Properties button, and then set the RecordSource property to an existing table or query.


When I check this it gives me the correct link to the frm:Searches and when I Debug it has the following code:

Sub Combo46_AfterUpdate()
' Find the record that matches the control.
Me.RecordsetClone.FindFirst "[NYCCID] = " & Me![Combo46]
Me.Bookmark = Me.RecordsetClone.Bookmark
End Sub

Maybe I am just being stupid but nowhere in my old database was there a recordset called Clone and I cannot work out why it would think there is. Is the use of Clone as a recordset something that I should remember from my training?

Thanks

Nikki

For upcoming training course dates see: Pricing & availability

replyReplyTue 27 Apr 2010, 16:23Trainer Stephen said...

RE: Access VBA Combo Box

Hi Nicola

Thanks for your question

RecordsetClone is a property that refers to a copy of the table or query underlying a form. It can be used to to work with the data viewed from a form independently of the form itself.

We do not use this method on the VBA course. We instead use DAO objects to achieve the same aim.

I suggest you try adopting that code here.

If you have any other questions, or need some further pointers please do get back to me

Regards

Stephen

replyReplyTue 27 Apr 2010, 16:29Delegate Nicola said...

RE: Access VBA Combo Box

Stephen,

I will have a look at trying that tomorrow, but have put it down for today in case I punch my screen!

Thanks Very Much

Nikki

 

 

Please browse our web site to find out more about
access class ms training and other Microsoft training courses.

Access tip:

Action queries

Unlike select queries you cannot use action queries as a data source for the use with forms or reports,as they do not return a dataset that can be read.

View all Access hints and tips

article

How To Insert, Delete, Format, Hide, Copy And Protect Worksheets In Excel

A new workbook contains 3 tabs in the same colour and with standard names. When creating advanced worksheets, you may need more or less tabs with coloured tab names. This article examines tabs and how they can be added, taken away, protected and altered.

» Article: Training microsoft excel

forum postDear Sir,
I have recently added a search function to one of my existing databases using a combo box, this simply uses a persons name to search through the existing table (I used the wizard to set this up).

The search box (combo box) is positioned at t..

» Forum post: Combo Boxes / Navigation

hint tipIf you often enter the same value in one field of a table, there are two methods to save re-typing the data.

1. Use Ctrl+' (apostrophe) to repeat the value input in the previous record.

2. Change the field's DefaultValue property in Design...

» Tip: Copy Previous Record Values


Rate this page:
2.2/5 (213 votes cast)
Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses
Microsoft Certified Partner
Security Seal verified by visa, mastercard securecard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Management training

Professional Skills courses
Project Management Course London
Project Management Courses London
Project Management Training London
Project Management Training
Project Seminar
Project Seminars
Time Management Course London
Time Management London
Time Management Courses London
Time Management Training London
Introduction to Finance course
Assertiveness Skills course
Effective Communications Skills training
Presentation Skills London

Training Formats

Public scheduled courses
On-site training
Closed company courses

Consultancy
Application Development

Blogs

Excel Training
MS Project Training
Microsoft Training Blog

Version differences

Office 2010 vs 2007
MS Project version differences

Training Information

London Computer Training
Computer Training London
Docklands Training Courses
Docklands Training London

Training venues London
Client list
FAQ
Pricing and availability
Course details / Syllabus

Training Articles
Training Information

Microsoft training

Microsoft Office training
& IT Applications

Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training
MS Project courses
MS Project training
Outlook courses
PowerPoint courses
PowerPoint training
VBA courses
Word courses
Microsoft.training
(more...)

Excel Training

Excel courses
Excel Training Courses Medway
Autonumber in Excel
Microsoft Excel training
Basic Excel Courses
Basic Excel Course
Basic Excel Training

Interested in MS Access training?

Access courses
Microsoft Access training
Microsoft access courses
Microsoft training access course
Microsoft+access+training
Access courses in london

Training provider

Training providers
IT training companies
IT training providers
Management Training providers
Management Training provider

Event history, feedback results
Events in 2012 · 2011 · 2010 · More

See also

Crystal Reports training