PDA

View Full Version : access مرتب کردن اعداد چند قسمتی در یک فیلد



farhadamin
دوشنبه 25 اردیبهشت 1385, 22:54 عصر
سلام
من در یکی از فیلذ های در برنامه اکسس 2003 اعدادی به صورت 12-3444-1998 دارم.... می خوام اعداد اول بر اساس اعداد قسمت دوم... در مثال 3444 و بعد قسمت سوم 12 و بعد قسمت اول 1998 مرتب شوند..... نمی توانم اعداد را جا به جا کنم..... در فیلد جداگانه هم نمی توانم بنویسم.
مثال
fild1
1998-3444-12
1999-3442-15
2000-3544-11
2001-3129-20
اعداد مثل این هستند و زمانی که من مرتب می کنم بر اساس اعداد اول مرتب می شوند که مورد نظر من نیست.....
امیدوارم که متوجه منظورم شده باشید
از کمکتون ممنون.....
البته من کدی را وارد کردم که تنها بر اساس ردیف دوم (3444) مرتب می کرد و بعد به عدد اول نگاه می کرد... اما کد کاملی پیدا نکرده ام
کد به صورت
SELECT Table1.Field1
FROM Table1
ORDER BY Mid([Field1],6,4);
است.

شاپرک
سه شنبه 26 اردیبهشت 1385, 06:30 صبح
لطف کنید و تاپیک تکراری نزنید اول به تاپیک هایی که قبلا ایجاد کردید سر بزنید ببینید جواب داده شده یا نه !!!!!!!!!!! من توی تاپیکی که لینکش رو اینجا میذارم جواب سوالتون رو گذاشتم :
http://www.barnamenevis.org/forum/showthread.php?t=45783

farhadamin
سه شنبه 26 اردیبهشت 1385, 08:21 صبح
salam va mamnon
ama manzoree man ghesmatee dovomee soalam bod.
ghesmatee sevomee adad
lotfan solalam ro dobaree bekhodin ..... man fontee farsi nadaram nemitonam khob ozih bedam


لطف کنید و تاپیک تکراری نزنید اول به تاپیک هایی که قبلا ایجاد کردید سر بزنید ببینید جواب داده شده یا نه !!!!!!!!!!! من توی تاپیکی که لینکش رو اینجا میذارم جواب سوالتون رو گذاشتم :
http://www.barnamenevis.org/forum/showthread.php?t=45783

شاپرک
سه شنبه 26 اردیبهشت 1385, 09:14 صبح
ببخشید
اینم جواب :
ولی بهتر بود تاپیک جدید نمی زدین و ادامه همون تاپیک سوال دوم رو مطرح میکردن

farhadamin
سه شنبه 26 اردیبهشت 1385, 12:42 عصر
salam
mamanon az lotfeton... amam
ghesmatee ...Query1... baz nemishee ekhtar midee.
be pay ghamee...mid ... irad migiree



ببخشید
اینم جواب :
ولی بهتر بود تاپیک جدید نمی زدین و ادامه همون تاپیک سوال دوم رو مطرح میکردن

شاپرک
سه شنبه 26 اردیبهشت 1385, 13:29 عصر
دقیقا بگید چه پیغامی؟

farhadamin
سه شنبه 26 اردیبهشت 1385, 13:46 عصر
fanktion mid vojod nadaree.... va nemishee barnamaro az kard

دقیقا بگید چه پیغامی؟

شاپرک
سه شنبه 26 اردیبهشت 1385, 14:07 عصر
یه نگاه به function ها بندازید ببینید این function رو دارید یا نه ؟
Access 97 ,2000, 2002, 2003 ??????????????????

farhadamin
سه شنبه 26 اردیبهشت 1385, 15:01 عصر
mamono ... ama man nemidonam che jori bayad fanktion ro chek konam ..... lotfan ye kam be soratee sade tozih bebdidi..... mamnon....

nemidonam manzoreton inee



Functions Reference
Note Functions marked with an asterisk (*) should not be used within a data access page against a stored query.

Command
DAvg
DCount
DDE
DDEInitiate
DDERequest
DFirst
DLast
DLookup
DMax
DMin
DStDev
DStDevP
DSum
DVar
DVarP
EuroConvert
Eval
GUIDFromString
Nz
StringFromGUID






یه نگاه به function ها بندازید ببینید این function رو دارید یا نه ؟
Access 97 ,2000, 2002, 2003 ??????????????????

شاپرک
چهارشنبه 27 اردیبهشت 1385, 06:42 صبح
احتمالا مشکل چیز دیگه ست لطفا دقیقا Error ای رو که میده اینجا کپی کنید

farhadamin
چهارشنبه 27 اردیبهشت 1385, 18:39 عصر
to ensure that your database or project works properly, you must fix this reference



The application you are attempting to use has a reference it cannot resolve to an object, type library, DLL, or external database.* Either the object, type library, DLL, or database was deleted or its name has changed. Examine the Available references list in the References dialog box in the Visual Basic Editor (Tools menu) to determine if any action is required. If you did not create this application, contact the programmer or administrator of the system.
If the reference listed in the Available references list is preceded with "MISSING:" clear the check box to remove the reference if it is no longer required. If you still need to use the reference, clear the check box entry for "MISSING: <referencename>" in the Available references list, and then create a new reference to the file using the Browse... button. If this is an installed database application, you may need to reinstall or repair the application.




احتمالا مشکل چیز دیگه ست لطفا دقیقا Error ای رو که میده اینجا کپی کنید

شاپرک
شنبه 30 اردیبهشت 1385, 06:42 صبح
RESOLUTION
To remove the missing reference, follow these steps:
1. Open your database.
2. Press ALT+F11 to open the Visual Basic Editor.
3. On the Tools menu, click References.
4. Click to clear the check box for the type library or object library marked as MISSING: <referencename>.
An alternative to removing the reference is to restore the referenced file to the path that is specified in the References dialog box. If the referenced file is in a new location, clear the MISSING: <referencename> reference, and then create a new reference to the file in the new folder.

شاپرک
شنبه 30 اردیبهشت 1385, 06:43 صبح
http://support.microsoft.com/?scid=http%3a%2f%2fwww.support.microsoft.com%2fkb% 2f275110%2f