Microsoft Access Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft Access Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old February 2nd, 2005, 11:47 AM
section one section one is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 1 section one User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 m 47 sec
Reputation Power: 0
Smile some access basics

hey guys,

i'm an asp + access programmer but i wanna start doing stuff for windows aswell
so i'm trying to get to the bottom of access abit more and there a few things that arent
clear to me:

1 - i have a form with a username field that displayes all the users in a certain table.
so i have one box benith another box.. and so on.. thats all fine and well.. now i've created
an "update" button that calls an update query that is suppose to update the table according to the changes
made to all of the username fields. but it doesnt really work.
after i click the button it opens a dialog asking me to manually input the value for the form field i defined in the query
instead of reading it streight from the form?!.. could someone take me step by step of how to build the update query?

2 - using the same form i created a seperate username field with a different name and i wish to insert it's content as a new
row to the table when i click a different button. how do i build the insert into query?


3 - is it possible to run those 2 queries togather using one button? lets say first the update and then the insert?

thanks very much!

Reply With Quote
  #2  
Old February 2nd, 2005, 03:56 PM
lwells lwells is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Sep 2004
Posts: 632 lwells User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 21 h 59 m 38 sec
Reputation Power: 5
The message box is indicating that it can't find the control name on your form and is treating it as a parameter. Make sure that you are using the control name of the control on your form and not the field name from the table. You can run both queries from one button using VBA. The easiest way is to construct your queries to perform the task that you are wanting them to do and then behind the button you would use the DoCmd.OpenQuery methods.
lwells

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft Access Development > some access basics


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT