I have a form connected to a database (by
OleDbConnection). I can travel between records without a
problem and change record (only one record visible at
time in the form).
I have not managed to program behind a button that will
add new record. Can you tell me how?
Best regards,
Arni L. 6 1424
Hi Arni,
Only the OleDbConnection is not enought to travel between the records, what
do you use, datareader, dataset, datagrid, dataview, etc?
Maybe we can help you as we know that
Cor I have a form connected to a database (by OleDbConnection). I can travel between records without a problem and change record (only one record visible at time in the form). I have not managed to program behind a button that will add new record. Can you tell me how?
Dear Cor,
I use an OleDbDataAdapter and a DataSet.
Then I have five textboxes where each is connected to a
field in a record (DataBinding).
Navigation between records is not a problem.
Only how to add a new record.
I look forward to see your reply.
Thanks, Arni L. -----Original Message----- Hi Arni,
Only the OleDbConnection is not enought to travel
between the records, whatdo you use, datareader, dataset, datagrid, dataview, etc?
Maybe we can help you as we know that
Cor
I have a form connected to a database (by OleDbConnection). I can travel between records without
a problem and change record (only one record visible at time in the form). I have not managed to program behind a button that will add new record. Can you tell me how?
.
Hi Arni,
I type it here just in this mail so watch little typeos
\\\
dim dr as datarow = datasetArni.tables(x).newrow
dr("whatever")="whatever"
dr("somethingelse")="somethingelse"
datasetArni.tables(x).rows.add(dr)
///
I hope this helps?
Cor I use an OleDbDataAdapter and a DataSet. Then I have five textboxes where each is connected to a field in a record (DataBinding).
Navigation between records is not a problem. Only how to add a new record.
Thanks Cor,
The code you sent does work if you are adding fixed info.
How do you start with an empty record on the form, which
the user fill in and will be saved as new record?
Thanks, Arni -----Original Message----- Hi Arni,
I type it here just in this mail so watch little typeos \\\ dim dr as datarow = datasetArni.tables(x).newrow dr("whatever")="whatever" dr("somethingelse")="somethingelse" datasetArni.tables(x).rows.add(dr) ///
I hope this helps?
Cor
I use an OleDbDataAdapter and a DataSet. Then I have five textboxes where each is connected to a field in a record (DataBinding).
Navigation between records is not a problem. Only how to add a new record.
.
Hi Arni,
You never can bind to nothing, so you have then to make an empty row.
But keep in mind that if there are keys in that you have to fill that first.
Cor The code you sent does work if you are adding fixed info. How do you start with an empty record on the form, which the user fill in and will be saved as new record?
Thanks Cor,
Regards,
Arni L. -----Original Message----- Hi Arni,
You never can bind to nothing, so you have then to make
an empty row.But keep in mind that if there are keys in that you have
to fill that first. Cor The code you sent does work if you are adding fixed
info. How do you start with an empty record on the form,
which the user fill in and will be saved as new record?
. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Skully Matjas |
last post by:
I am using the following code (created by the wizard) to
allow to bring my form to a particular entery. But when I
edit the entery (ex: put new information into a blank
cell), it puts that record...
|
by: mark |
last post by:
Access2000
How do I write a query that combines the CTC field from each record below into
one record? I need to concatenate the CTC field with a separator, like below:
...
|
by: Steve |
last post by:
I have a form with about 25 fields. In the BeforeUpdate event of the form, I
have code that sets the default value of each field to its current value. For a
new record, I can put the focus in any...
|
by: Zlatko Matić |
last post by:
There is a form (single form) and a combobox. I want that current record of
the form is adjusted according to selected value in the combobox. Cuurrent
record should be the same as the value in the...
|
by: Ross A. Finlayson |
last post by:
Hi,
I'm scratching together an Access database. The development box is
Office 95, the deployment box Office 2003.
So anyways I am griping about forms and global variables. Say for
example...
|
by: Scott269 |
last post by:
So I've got an old MS Works database I imported into Access. I needed
a primary key so I created a record number field that was just the
record number I manually inserted when I entered it in the...
|
by: Scott269 |
last post by:
So I've got an old MS Works database I imported into Access. I needed
a primary key so I created a record number field that was just the
record number I manually inserted when I entered it in the...
|
by: Mark Reed |
last post by:
Hi All,
I have created a multi-user application at work which is working
perfectly apart from a small problem which I believe to more a of a user
issue (maybe some will set me straight on that...
|
by: khalidbaloch |
last post by:
hi : all Friend i am a new member of this comunity as well in php myqsl
i want learn that how to dispaly three or two record from a mysql table
for example ..
mysql table category has 21 columns,...
|
by: prn |
last post by:
Hi folks,
I've got something that's driving me crazy here. If you don't want to read a long explanation, this is not the post for you.
My problematic Access app is a DB for keeping track of...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
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...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
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,...
| |