Create new row in table

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Apr 2009
Posts: 1
Reputation: Rafik O is an unknown quantity at this point 
Solved Threads: 0
Rafik O Rafik O is offline Offline
Newbie Poster

Create new row in table

 
0
  #1
May 22nd, 2009
I am trying to create a database for the inspection of properties.
I have a created a table and form with the following 6 fields.

InspectionID Index Primary Key
PropertyAddress Address of the property Text
DateOfInspection Date of inspection format dd/mm/yyyy
InspectionDone Y/N tick box
InspectionBy Lookup
Comment Memo

What i am trying to do is initially for each property i will type in the information example in datasheetview
PropertyID PropertyAddress InspectionDate InspectionBy Inspecti
1 Gedding Road 73 08/04/2009 Ash -1
2 King Edward Road 25 06/04/2009 Salim 0
3 Trevino Drive 61 10/04/2009 Ash 0

What i am trying to do is once an inspection is done, and the box INSPECTIONDONE is clicked a new record is created in the next row with the following informatin

InspectionID to change to the next number up
PropertyAddress to stay the same
DateOfInspection to change to current date plus 3 months
InspectionDone to stay the same
InspectionBy to stay the same
Comment to stay blank

I hope you understand and help me sort out the code

Rafik

Ps for those who surf the forums I did post this elsewhere but have not solved the problem.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC