If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Append Query Question
I'm just starting trying to put together an Access app for the first time and would appreciate some help. I've read and updated data in Access database files from VB programs but never done it within an Access module. Can I still use ADO and read/write data to the MDB file from within a module of the MDB file, or is there some object of the application that I can execute sql queries and updates against? Thanks for any help. |
#2
|
|||
|
|||
Yes, you can. In fact, Access makes it easier for you to establish the
connection to the current database with CurrentProject.Connection. Check Access VB Help on the Connection Property of CurrentProject. HTH Van T. Dinh MVP (Access) "AccessNewbie" wrote in message ... I'm just starting trying to put together an Access app for the first time and would appreciate some help. I've read and updated data in Access database files from VB programs but never done it within an Access module. Can I still use ADO and read/write data to the MDB file from within a module of the MDB file, or is there some object of the application that I can execute sql queries and updates against? Thanks for any help. |
#3
|
|||
|
|||
Van, thanks for the tip. That at least got me started. Now I have another
problem... The form I am working with uses navigationbuttons for moving among the table's records. The form has several controls that are bound to various fields. I want to use the value of one of the controls after the user moves to a different record. My current problem is that I don't know how to determine the current record number. Can you help? thanks "Van T. Dinh" wrote in message ... Yes, you can. In fact, Access makes it easier for you to establish the connection to the current database with CurrentProject.Connection. Check Access VB Help on the Connection Property of CurrentProject. HTH Van T. Dinh MVP (Access) |
#4
|
|||
|
|||
Not sure what you meant by "to use the value of one of the Controls" but
check Access Help on the following Properties of the Form: * CurrentRecord * BookMark -- HTH Van T. Dinh MVP (Access) "AccessNewbie" accessnewbie wrote in message ... Van, thanks for the tip. That at least got me started. Now I have another problem... The form I am working with uses navigationbuttons for moving among the table's records. The form has several controls that are bound to various fields. I want to use the value of one of the controls after the user moves to a different record. My current problem is that I don't know how to determine the current record number. Can you help? thanks |
#5
|
|||
|
|||
Thanks again. that helps but I'm still left with issue of event. I can't see
any event that corresponds to the user clicking one of the form navigation buttons. "Van T. Dinh" wrote in message ... Not sure what you meant by "to use the value of one of the Controls" but check Access Help on the following Properties of the Form: * CurrentRecord * BookMark -- HTH Van T. Dinh MVP (Access) "AccessNewbie" accessnewbie wrote in message ... Van, thanks for the tip. That at least got me started. Now I have another problem... The form I am working with uses navigationbuttons for moving among the table's records. The form has several controls that are bound to various fields. I want to use the value of one of the controls after the user moves to a different record. My current problem is that I don't know how to determine the current record number. Can you help? thanks |
#6
|
|||
|
|||
Use the Form_Current Event???
-- HTH Van T. Dinh MVP (Access) "AccessNewbie" accessnewbie wrote in message ... Thanks again. that helps but I'm still left with issue of event. I can't see any event that corresponds to the user clicking one of the form navigation buttons. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sub Query Consolidation, Syntax Question | Quizarate | Running & Setting Up Queries | 5 | September 9th, 2004 10:30 PM |
Append Query problem -- producing WAY too many records. | Richard Hollenbeck | Running & Setting Up Queries | 3 | July 24th, 2004 09:32 AM |
Append Query Question | Chaplain Doug | Running & Setting Up Queries | 2 | July 7th, 2004 02:30 PM |
can't append records in append query | Greg Clements | Running & Setting Up Queries | 1 | July 2nd, 2004 04:29 PM |
Newbie? Do I use Report or Query | John Egan | New Users | 11 | June 28th, 2004 08:31 PM |