473,396 Members | 1,998 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,396 software developers and data experts.

2 textfields as 1 record

19
Hi there,

I have a question about forms in MS Access..

Is it possible in any way at all, to add info in 2 textfields and save it as 1 record.

Detail:

I have a record with 3 fields. "Patchnummer" "Patchkast" and "Ruimte"

"Patchnummer" (XX-0) XX stands for A-Z and 0 stands for 1-24
"Patchkast" (XX0) XX stands for A-Z and 0 stands for 1-24

Now I want those 2 fields combined as 1. So that the total outcome would be something like XX0 XX-0

If there is any more info needed please ask, because I can't find any information about it myself..

Thanks
Jan 7 '08 #1
2 8821
ADezii
8,834 Expert 8TB
Hi there,

I have a question about forms in MS Access..

Is it possible in any way at all, to add info in 2 textfields and save it as 1 record.

Detail:

I have a record with 3 fields. "Patchnummer" "Patchkast" and "Ruimte"

"Patchnummer" (XX-0) XX stands for A-Z and 0 stands for 1-24
"Patchkast" (XX0) XX stands for A-Z and 0 stands for 1-24

Now I want those 2 fields combined as 1. So that the total outcome would be something like XX0 XX-0

If there is any more info needed please ask, because I can't find any information about it myself..

Thanks
In the AfterUpdate() Event of PatchNumber and PatchKast, place similar code:
Expand|Select|Wrap|Line Numbers
  1. Private Sub PatchNumber_AfterUpdate()
  2. If Not IsNull(Me![PatchNumber]) And Not IsNull(Me![PatchKast]) Then
  3.   Me![Ruimte] = Me![PatchNumber] & " " & Me![PatchKast]
  4. Else
  5.   Me![Ruimte] = ""
  6. End If
  7. End Sub
Jan 7 '08 #2
NeoPa
32,556 Expert Mod 16PB
The normalised way of handling this would be not to store it at all but to show the calculated result any time it's required. The only exception that springs easily to mind is when using the resultant field in an index.
Jan 7 '08 #3

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

Similar topics

3
by: R.G. Vervoort | last post by:
I would like to select an option in a pulldown, select a record in a mysql database depending on the pulldown selection and then put the data from the record in the textfields. I can retrieve...
1
by: Filips Benoit | last post by:
Dear All, After copying a record using an Stored procedure all textfields (nvarchar) has max lenght ! See VBA-code and SP below VBA-code tos execute SP
1
by: Ed | last post by:
Hi, I have an html page with a div element within a form for dynamically creating textfields. The problem is when I click a link on the page, or the submit button, then click the back button,...
1
by: Rich Wahl | last post by:
Ok, This may sound like a noob question, but I have an application, that asks the user to fill in fields from a pre-generated list of possibilities. And upon clicking submit, the user is...
6
by: anirban.anirbanju | last post by:
hi there, i've some serious problem to add rows dynamically in a table. my table contains 5 cell. | check | from_value | to_value | color_text | color_value |...
0
by: chandutp | last post by:
hi i am new to this forum can i populate datagrid items of asp page to another asp page having textfields. in this datagrid userId is the index key by which it referenced.and i am using edit...
1
by: eureka | last post by:
Hi folks, I am working on a webapplication using Jsp and JS. On my main Jsp(Jsp1) I have a table which is created dynamically inside a <divand contains all the backend-table's records as rows,...
3
by: nicky77 | last post by:
Hi there, newish to javascript so grateful for any help. I am creating a test generator and have an array of textfields ("answer") created by a simple piece of PHP code. As you can see, I have...
3
by: bravephantom | last post by:
In my project "scientific calculator", im using 2 textfields in my GUI app. the problem now (or actually what i dislike) is the user has to use the 2 textfields even if he needs a function of only 1...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
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
1
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...
0
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...
0
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...
0
Oralloy
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
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,...

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.