|
-
Jun 15th, 2009, 09:37 PM
#1
Thread Starter
Member
MSACCESS Relationships
i'm having trouble with the relationships in VS when relating from long to Autonumber
I got an answer that fields should be declared integer, but ACCESS explicity
states that fields realting to autonumber must be delared long
Thanks
-
Jun 15th, 2009, 10:14 PM
#2
Re: MSACCESS Relationships
This is a terminology issue. In VB.NET a Short is a 16-bit, an Integer is a 32-bit value and a Long is a 64-bit value. In Access an Integer is a 16-bit value and a Long Integer is a 32-bit value. If you define a column's data type as Long Integer in Access then values from that column will be Integers, not Longs, when retrieved into your VB.NET app.
-
Jun 16th, 2009, 05:29 AM
#3
Thread Starter
Member
Re: MSACCESS Relationships
But VS doesnt let me establish relationship between the "long" field and autonumber
How do i resolve it?
-
Jun 16th, 2009, 06:31 AM
#4
Re: MSACCESS Relationships
EXACTLY what are you doing and EXACTLY what is happening, because I have no problem creating a relation in the VS DataSet designer between two columns defined in Access as AutoNumber (Long Integer) and Number (Long Integer)? Presumably you are doing something different but if you don't tell us what it is then we can only guess. If you'd like su to help you with your problem then you don't want us to have to guess what it is, do you? Provide a FULL and CLEAR description of the problem.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|