473,320 Members | 1,988 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Set 2 fiels to same value

mickyp
1
Hi There,

I have an access database where I would like to set two fields to the same value.
Both fields are in the same table called Sampletbl

The one field is called Year and the other Years.

Is there anyway to get access to populate field year with the same value as field years automatically.

Thankx
MickyP
Sep 4 '06 #1
2 1483
PEB
1,418 Expert 1GB
Hi,

The way to do it is to use an Update Query!

You have to do a new query and in SQL view you type the folling SQL:

UPDATE [Sampletbl] SET [Sampletbl].Year = [Years];

And than you press the run sql buton and you run the query!

Will appear a message that your records will be updated!
Sep 4 '06 #2
MMcCarthy
14,534 Expert Mod 8TB
You don't say where you would like this update to happen. For example, is it during a user entering data on a form, etc.



Hi There,

I have an access database where I would like to set two fields to the same value.
Both fields are in the same table called Sampletbl

The one field is called Year and the other Years.

Is there anyway to get access to populate field year with the same value as field years automatically.

Thankx
MickyP
Sep 4 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Uwe Mayer | last post by:
Hi, sorry for the lack of source code. Here again: I use struct.unpack() to unpack data from a binary file and pass the returned tuple as parameter to __init__ of a class that's supposed to...
1
by: Jenny | last post by:
Hi, Can I create an array of tags by assigning same name to these tags? For example, I have two <p> tags with the same name t1. But document.all.b.value=document.all.t.length does not...
1
by: marko | last post by:
Here is my problem. How can i make a field in a form change to a value 1 every morning when I turn access on, when the date changes? And how can i make a button on a form which would open another...
0
by: joostbazelmans | last post by:
Hi, I have a acces database, that uses a form that can be send by e-mail. This is all working well, but noiw I want to make it so, that the from field is automticly filled with a value that I...
4
by: don | last post by:
I have two existing interfaces having methods with same names. Now I have to implement both intrfaces in one class. Is there any way I could implement methods with same names in both interfaces...
3
by: Truong Hong Thi | last post by:
Anyone know a free vs.net 2003 plugin that is capable of generating properties from private fields for C#? Thanks ahead.
8
by: AAJ | last post by:
Hi all I would like to have a class that can set/return values of different datatype via a single accessor, i.e. overload the accessor i.e. something like DateTime m_DateValue; string...
3
by: atomD21 | last post by:
I am working on creating a form for potential clients to email me their name, email address and a comment about how I can be of service to them. I have the form basically completed, but I am running...
0
by: touristtam | last post by:
Hi, I have a slight problem I can't manage to solve: I am trying to read a file and to return each line as a string. This might seems like a newbie job, but I am dealing with files are as big as...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.