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

Automatisk ID nummer (sammeslags og cpr.)

Hej er der evt. nogen som kan hjælpe mig. Jeg skal til at lave en database
til en gård som har heste.
Gårdejeren ønsker at have ID for hver hest på følgende måde (2000-1,
2000-2). D.v.s. det forreste tal er det år som hesten er født i og det
bageste tal er et fortløbende nummer. Den første hest som blev født på
gården året 2000 få ID 2000-1 og den anden hest som blev født året 2000 få
ID 2000-2 den første hest som bliver født året 2002 få ID 2002-1.
Er der nogen som ved om jeg kan få MS Access til at reservere sådan ID
automatiskt d.v.s. når gårdejeren skal til at registrere et nyfødt føl i år
og det er nr. 10 i rækken vil MS Access reservere et ID til ham som hed
2003-10 oh hvis han fik så det næste føl i Januar 2004 ville MS Access
reservere et ID til ham som hed 2003-10 og ID nummeret ville så være
primærnøglen til tabellen.

Nov 12 '05 #1
0 1628

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Harald Massa | last post by:
Old, very old informatical problem: I want to "print" grouped data with head information, that is: eingabe= shall give: ( Braces are not important...) 'Stuttgart', '70197' --data--...
1
by: Ulf Heyder | last post by:
Hello everyone, I want to add a unique constraint to a XSD I created. After I modified validation (XMLSpy, Castor-0.9.5 marshaller) of my example (see below) against the XSD (also see below)...
3
by: nescio | last post by:
hello, i have a page called 'a.php'. on this page is a form with a textfield and a link. if you click the link an pop up opens. in this pop up is an number visible with a link. what i want...
8
by: nescio | last post by:
hello, i have got a javascript that opens a new window. when i call the javascript function i want to ad a variable. what you see on the pop up depends on the variable. but the variable in...
2
by: Dutchy | last post by:
Hi there, After spending several hours trying all I could imagine and search for in Google I gave up. In a continuous form I want to sort the choosen column by clicking the header (label) of...
1
by: Niko Mann | last post by:
Hallo zusammen, ich habe folgendes Problem: Ich habe ein Formular in dem ein Gesamtwert in einem Feld errechnet wird. Jetzt möchte ich diesen Gesamtwert automatisch in ein anderes Feld im...
1
by: Briton | last post by:
Hi I got the following case: I got to tables named "Table1" and "Table2" Both tables got the same fields. When data in table1 are used they are moved to table2. The fields I am interested in...
3
by: Rick van Lieshout | last post by:
Hi all, I'm trying to use the sql engine SQLite within my Visual C# project. I downloaded the mono version of the .NET framework so I could use Mono.Data.SqliteClient.dll , however I can't seem...
1
by: dirk van waes | last post by:
Hello everyone, Being complete newbie in asp.net I am trying to make an example which works with a very simple database. First I made my project in VS- vb.net, draging an oledbconnection and an...
1
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

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.