I have a DSN database with 3 tables,
- Accounts which contains the Username and user data information and Account ID column as the key field (though username could be the keyfram as they are unique in this table)
2.Accountbills
3.Acount history
bills and history have the 1 column of Username, and the information regardng them which means there could be multiple usernames in one colum with their actions at different times,
without the account bills and history, i am fine,
users can see there data and edit it in the account table
however i want them to also be able too see there bills and history in the detail page of viwing their information
What i did was where we could chose the the tables for both bills and history, for master-detail relationship i put the Accounts table as the Master and, the primary key the Username, and Foreign key Username
but my problems are now
first of all i don't know how to query their data together with the main data
i tried from SQL query
select [UserName], ...... From [Accounts]
select [ProductName], [Count], [Price] From [AccountBill]
....
whic doesn't work
each query works fine seperatly
and my other problem is how to show theire details for each user in their account view page,
Please help me to fix this,