Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

MS Access problem..!!!

denzkie1191

Proficient
Advanced Member
Messages
232
Reaction score
56
Points
98
Perfect Health
Enormous Fortune
Solid Family
mga master sa MS Access jan.. pa help po sa problem ko.. meron kasi akong ginawang simple data entry sa access.. ok na sana kaso, sa tuwing magdedelete ako ng record ky hndi ng.aauto fill.in sa na delete na record yung sequence number.. hal.( meron akong record numbers 12345, tpos kung e.delete ko yung record number 5, so ang natira is 1234 nlng then if mg.aadd ako ng new record dapat sana yung number is 5 pa din dapat, ang nangyari ay naging 1,2,3,4,6 na.. nawala na yung number 5..

ano po ba dapat gawin pra ma.autofill in yung incremented numbers ng record ko sa tuwing meron akong e.delete na record?
 
Thats normal po kasi index yung column na yun and is a unique key. kung gusto mong utilized yung sinasabi mo, make an int id column but not set it as the IX and not auto increment. when adding new record, fetch the last record and add 1 from it. ex: may 12345 ka ng na number, deleted ang 5 so dapat upon inserting a record, fetch mo muna yung last record mo which is yung 4 then add 1 para maging 5 na ulit. use the TOP 1 function para makuha yung pinaka last na record. then sa frontend mo dun mo diskartehan na mag add ka ng 1. or simply create a dedicated stored procedure for that na mag return nung added value na para wala ka ng aalalahanin sa frontend mo.
 
salamat po sa suggestion mo, hehehe medjo di ko lng na gets.. ahaha.. baguhan po lng kasi ako.. nangangapa pa sa kasalukuyan.. hahahaha. baka meron po kaung sample jan pag.aralan ko lng kung pano mo ginawa.. hehehe..
 
Back
Top Bottom