hi
In room table the roomtype and roomtypeid i created columns then the problem is that when i run the form and add data in database then in roomtypeID the show is double or single
i want that in roomtypeID they show as 1 or 2 in roomtypeid column which is not shown
in sql roomtype table i also fill the data like that
RoomtypeID RoomType
1 DOUBLE
2 sINGLE
the room table is like that
RooMid Roomno RoomTypeID
9 345 Double
then how is shown 1 or 2 in roomtypeid instead of double or single
diya45
-2
Newbie Poster
Recommended Answers
Jump to PostI take it you want the user to select the word "double" or "Single from a combo box but the value 1 or 2 to be shown in the room table when the selection is saved, depending on which room type was chosen ?
If that is the case you …
Jump to PostYes you can use the SQL if you like just try and understand it first. If you want to show the roomTypeID too just selected from your Room table during the select part of the statement.
Jump to PostSo do you want to show both the roomTypeID AND roomType?
You can display everything returned by the SQL statement or just what you need.
All 12 Replies
diya45
-2
Newbie Poster
diya45
-2
Newbie Poster
diya45
-2
Newbie Poster
diya45
-2
Newbie Poster
ChrisHunter
152
Posting Whiz in Training
Featured Poster
a1brains
0
Newbie Poster
diya45
-2
Newbie Poster
diya45
-2
Newbie Poster
ChrisHunter
152
Posting Whiz in Training
Featured Poster
diya45
-2
Newbie Poster
ChrisHunter
152
Posting Whiz in Training
Featured Poster
ChrisHunter
152
Posting Whiz in Training
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.