Advertisement

03.23.2008 at 04:28PM PDT, ID: 23263127
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

MS Access Form- Create an updateable recordset originating based on table
I have a form that I need to create an updateable recordset based on a table within the database.  How would I do that with the following fields:

Name
address
city
Start your free trial to view this solution
Question Stats
Zone: Microsoft
Question Asked By: deer777
Solution Provided By: mbizup
Participating Experts: 2
Solution Grade: A
Views: 0
Translate:
Loading Advertisement...
03.23.2008 at 04:52PM PDT, ID: 21191159

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.24.2008 at 07:37AM PDT, ID: 21193774

Rank: Master

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.24.2008 at 04:53PM PDT, ID: 21198542

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.27.2008 at 10:33AM PDT, ID: 21223885

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.27.2008 at 10:35AM PDT, ID: 21223904

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.27.2008 at 01:32PM PDT, ID: 21225467

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.27.2008 at 01:39PM PDT, ID: 21225516

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.27.2008 at 07:13PM PDT, ID: 21227539

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.27.2008 at 07:54PM PDT, ID: 21227676

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.27.2008 at 08:11PM PDT, ID: 21227733

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.28.2008 at 02:59AM PDT, ID: 21229025

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.28.2008 at 04:17AM PDT, ID: 21229325

Rank: Guru

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
03.31.2008 at 07:46AM PDT, ID: 21245809

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
Microsoft
  • Internet Protocols
  • Applications
  • Development
  • OS
  • Hardware
  • Windows Security
Apple
  • Operating Systems
  • Hardware
  • Programming
  • Networking
  • Software
Internet
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Spy / Ad Blockers
  • Web Browsers
  • New Net Users
  • Web Development
  • Chat / IM
  • Anti Spam
  • Web Servers
  • Anti-Virus
  • Email Clients
Gamers
  • Tips
  • Online / MMORPG
  • Puzzle
  • Emulators
  • Action / Adventure
  • Role Playing
  • Consoles
  • Game Programming
  • Strategy
  • Sports
  • Misc
  • Computer Games
Digital Living
  • Hardware
  • New Net Users
  • New Users
  • Software
  • Digital Music
  • Gaming World
  • Home Security
  • Apple
  • Networking Hardware
Virus & Spyware
  • Vulnerabilities
  • IDS
  • Encryption
  • Anti-Virus
  • Operating Systems Security
  • Software Firewalls
  • WebApplications
  • Cell Phones
  • Operating Systems
  • Internet
  • Hardware Firewalls
Hardware
  • Handhelds / PDAs
  • Displays / Monitors
  • Components
  • Networking Hardware
  • Peripherals
  • Laptops/Notebooks
  • Storage
  • Servers
  • Desktops
  • New Users
  • Misc
  • Apple
Software
  • System Utilities
  • Industry Specific
  • Network Management
  • Photos / Graphics
  • Page Layout
  • VMWare
  • Misc
  • Web Development
  • OS
  • CYGWIN
  • Voice Recognition
  • Message Queue
  • Quality Assurance
  • Security
  • Firewalls
  • MultiMedia Applications
  • Development
  • Database
  • Office / Productivity
  • Business Management
  • OS/2 Apps
  • Server Software
  • Internet / Email
ITPro
  • OS
  • Storage
  • Encryption
  • Operating Systems Security
  • Apple Hardware
  • Laptops & Notebooks
  • Servers
  • Networking Hardware
  • Peripherals
  • Devices
  • Displays / Monitors
  • WebTrends / Stats
  • Search Engines
  • Firewalls
  • WebApplications
  • IDS
  • Vulnerabilities
  • Email Clients
  • File Sharing
  • Spy / Ad Blockers
  • Web Browsers
  • Web Servers
  • Networking
  • Anti-Virus
  • Chat / IM
  • Anti Spam
Developer
  • Web Servers
  • Web Browsers
  • Game Programming
  • Dev Tools
  • Industry Specific
  • Office / Productivity
  • Database
  • CYGWIN
  • Web Development
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Programming
  • Content Management
  • Application Servers
  • Protocols
Storage
  • Removable Backup Media
  • Storage Technology
  • Servers
  • Grid
  • Remote Access
  • Backup / Restore
  • Misc
  • Hard Drives
OS
  • Miscellaneous
  • Security
  • Development
  • Linux
  • VMWare
  • MainFrame OS
  • Unix
  • Apple
  • OS / 2
  • AS / 400
  • BeOS
  • Microsoft
  • VMS / OpenVMS
Database
  • Oracle
  • Miscellaneous
  • MySQL
  • Software
  • Sybase
  • Contact Management
  • PostgreSQL
  • Data Manipulation
  • Clarion
  • InterSystems Cache
  • Siebel
  • MUMPS
  • OLAP
  • SQLBase
  • SAS
  • GIS & GPS
  • 4GL
  • Berkeley DB
  • DB2
  • Informix
  • Interbase / Firebird
  • FoxPro
  • Reporting
  • LDAP
  • Filemaker Pro
  • MS SQL Server
  • dBase
  • MS Access
Security
  • Misc
  • Web Browsers
  • Software Firewalls
  • Operating Systems Security
  • File Sharing
  • Spy / Ad Blockers
  • Vulnerabilities
  • WebApplications
  • IDS
  • Anti-Virus
  • Encryption
  • Anti Spam
  • Email Clients
  • VPN
  • Chat / IM
Programming
  • Editors IDEs
  • Installation
  • Handhelds / PDAs
  • Multimedia Programming
  • System / Kernel
  • Algorithms
  • Game
  • Signal Processing
  • Project Management
  • Open Source
  • Database
  • Misc
  • Languages
  • Processor Platforms
  • Theory
Web Development
  • Scripting
  • Blogs
  • Web Servers
  • Software
  • Search Engines
  • Web Graphics
  • Images
  • Internet Marketing
  • Images and Photos
  • Components
  • Document Imaging
  • Web Languages/Standards
  • Illustration
  • WebApplications
  • Fonts
  • WebTrends / Stats
  • Authoring
  • Digital Camera Software
  • Miscellaneous
Networking
  • Protocols
  • Apple Networking
  • Network Management
  • Message Queue
  • Application Servers
  • Content Management
  • File Servers
  • Email Servers
  • Misc
  • Java Editors & IDEs
  • Wireless
  • Networking Hardware
  • Backup / Restore
  • System Utilities
  • ISPs & Hosting
  • Web Servers
  • Storage Technology
  • Removable Backup Media
  • Servers
  • Broadband
  • Grid
  • OS / 2
  • Novell Netware
  • Unix Networking
  • Windows Networking
  • Security
  • Telecommunications
  • Operating Systems
  • Linux Networking
Other
  • Community Advisor
  • Lounge
  • Community Support
  • New Net Users
  • Philosophy / Religion
  • Math / Science
  • Miscellaneous
  • URLs
  • Expert Lounge
  • Politics
  • Puzzles / Riddles
Community Support
  • Suggestions
  • New to EE
  • New Topics
  • Community Advisor
  • CleanUp
  • Announcements
  • General
  • Feedback
  • Input
  • EE Bugs
 
03.23.2008 at 04:52PM PDT, ID: 21191159
The table name is tblTest
 
03.24.2008 at 07:37AM PDT, ID: 21193774

Rank: Master

You don't want to base the form on tblTest itself, you want to base the form on an updateable recordset that is based upon tblTest?

OM Gang
 
03.24.2008 at 04:53PM PDT, ID: 21198542
I have never used a recordset before.  Thought I would try to make tis an updateable recordset.
 
03.27.2008 at 10:33AM PDT, ID: 21223885
ok
 
03.27.2008 at 10:35AM PDT, ID: 21223904
ok
 
03.27.2008 at 01:32PM PDT, ID: 21225467

Rank: Guru

Hi deer777,

Are you doing this purely out of academic interest, or for a specific application?  Depending on the layout of your form, this can be a lot of work.  

You need to
- Define an ADO recordset
- Set the form's recordset property to the ADO recordset you created
- Set the Control Source property of all the necessary controls to fields in that recordset (this is not difficult, but can be tedious depending on how many controls are needed)

The VBA looks like this code snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
Dim rst As ADODB.Recordset
dim strSQL as string
Set rst = New ADODB.Recordset
 
' This defines the query through which the form's data is pulled.  It must be an updateable query to allow the
' user to enter data through the form.
strSQL = "Select * From MyTable"  
 
rst.CursorLocation = adUseClient
rst.Open strSQL, CurrentProject.Connection, adOpenKeyset, adLockOptimistic   '<-----  This opens your ADO recordset 
Set Me.Recordset = rst    '<-----  This sets the form's recordset property to your updateable recordset
 
' Once you set the form's recorset property, you can set the control sources of the textboxes, combos, etc to 
' fields that are present in the query.   You need to do this for all controls that you want to be updateable.
Me.txtMyTextbox.ControlSource = "MyFieldName" 
Open in New Window
 
03.27.2008 at 01:39PM PDT, ID: 21225516

Rank: Guru

Btw, It looks like you put a couple of close or delete requests in for this question and then inadvertently cancelled them with you own comments.  The automatic Close and Delete system is described in detail here:

http://www.experts-exchange.com/Community_Support/Announcements/Q_23151688.html
 
03.27.2008 at 07:13PM PDT, ID: 21227539
I still need to solve this issue but thought maybe I wasn't explaining it correctly and no one understood what I was asking.  Not sure if I need to use a recordset to update this or just pull the table data directly into the form.  I have been able to use the table data directly into the form and type in changes but unable to update the table.  How can I do that?

Tks
 
03.27.2008 at 07:54PM PDT, ID: 21227676

Rank: Guru

> I have been able to use the table data directly into the form and type in changes but unable to update the table.
A few questions...
- What is in your form's recordsource property?
- How are you trying to "update the table"?  Are you editing the data through controls on the form?
- What happens when you try to make these updates?  (error message, etc)

In general, if you set a Form's recordsource  (different from Recordset) property to a table or updateable query, you should be able to freely update, add or delete data through the form --  That is how Access works.  You do not need set the form's recordset property as described in my previous post to acheive these basic functions.

If the  RecordSource property is simply set to a table and you are unable to edit data, then something else such as User Level Security or certain form property settings (such as AllowEdits, AllowAdditions, etc)  is causing the problem.

I'm sticking with this thread as needed, but I may not be able to respond until tomorrow evening.
Accepted Solution
 
03.27.2008 at 08:11PM PDT, ID: 21227733

Rank: Guru

Can you post a sample including the relevant Forms and tables?  Make sure it is cleaned of any sensitive data, and use this site for the upload:
www.ee-stuff.com
 
03.28.2008 at 02:59AM PDT, ID: 21229025
I am using controls on the form trying to update:

Save
Add New
Delete
View All
Print
Close

Of course the View All, Print, and Close all work - not sure how to save and delete and Add New  the individual records.  The table properties is set up to allow edits, deletes.  
 
03.28.2008 at 04:17AM PDT, ID: 21229325

Rank: Guru

Deer777,

Can you answer the questions in my previous posts?  
Also, is the form an Access form, or are we dealing with VB, VB.net or something else?

An uploaded sample would be very helpful to get us thinking on the same page:
www.ee-stuff.com
 
03.31.2008 at 07:46AM PDT, ID: 21245809
I will try to send you a sample later today.

Thanks much!
 
 
20080236-EE-VQP-29 / EE_QW_2_20070628