473,396 Members | 2,140 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

text box issue

DEAR GURUS, CAN ANY ONE CHECK THIS CODE WHEN I RUN ON UNBOUND TEXT BOX
IT WORKS 100%, BUT IF I USED ANY BOUND TEXTBOX IT WORKS SOME TIME AND
SOME TIME NOT????

AND IN THE TABLE IT IS SET AS DATE,

CAN ANY ONE PASS COMMENTS ON THIS..I KNOW THIS IS SMALL PROBLEM
SOMETHING MISSING OR SYNTAX MISSING...I AM CONVERTING FROM GREGORIAN
DATE TO HIJRI AND VICE CERSA

=======================================
Private Sub Dt_Dob_ar_AfterUpdate()

Calendar = vbCalHijri
Dt_Dob_en.Value = Dt_Dob_ar.Value
End Sub
=======================================

Nov 13 '05 #1
3 1753
SalimShahzad wrote:
DEAR GURUS, CAN ANY ONE CHECK THIS CODE WHEN I RUN ON UNBOUND TEXT BOX IT WORKS 100%, BUT IF I USED ANY BOUND TEXTBOX IT WORKS SOME TIME AND
SOME TIME NOT????

AND IN THE TABLE IT IS SET AS DATE,

CAN ANY ONE PASS COMMENTS ON THIS..I KNOW THIS IS SMALL PROBLEM
SOMETHING MISSING OR SYNTAX MISSING...I AM CONVERTING FROM GREGORIAN
DATE TO HIJRI AND VICE CERSA

=======================================
Private Sub Dt_Dob_ar_AfterUpdate()

Calendar = vbCalHijri
Dt_Dob_en.Value = Dt_Dob_ar.Value
End Sub
=======================================


Umm... for starters, how about not shouting? Did you try it without
using .Value, since that's the default property anyway? Hmm...
comments? How about doing a little experimenting.... in other words,
it's called independent learning. (Well, next time, don't ask for
comments!)

Nov 13 '05 #2
dear sir,

i respect ur suggetions and avoid to pass comments, there must be some
misunderstanding...

anyway u r nt aware what i am suffering, as system handle 1 calendar in
one time...now the access is behaving abnormal when i am converting
dates from gregorian to hijri works 100%

when i convert from hijri to gregorian is still fails....

if u can help us is okay otherwise plz don't hurt this way, after all
whatever I leanr from u gurus, groups and books and my own practical
experience

rgds,
shahzad
pi********@hotmail.com wrote:
SalimShahzad wrote:
DEAR GURUS, CAN ANY ONE CHECK THIS CODE WHEN I RUN ON UNBOUND TEXT

BOX
IT WORKS 100%, BUT IF I USED ANY BOUND TEXTBOX IT WORKS SOME TIME AND SOME TIME NOT????

AND IN THE TABLE IT IS SET AS DATE,

CAN ANY ONE PASS COMMENTS ON THIS..I KNOW THIS IS SMALL PROBLEM
SOMETHING MISSING OR SYNTAX MISSING...I AM CONVERTING FROM GREGORIAN DATE TO HIJRI AND VICE CERSA

=======================================
Private Sub Dt_Dob_ar_AfterUpdate()

Calendar = vbCalHijri
Dt_Dob_en.Value = Dt_Dob_ar.Value
End Sub
=======================================


Umm... for starters, how about not shouting? Did you try it without
using .Value, since that's the default property anyway? Hmm...
comments? How about doing a little experimenting.... in other words,
it's called independent learning. (Well, next time, don't ask for
comments!)


Nov 13 '05 #3
SalimShahzad wrote:
DEAR GURUS, CAN ANY ONE CHECK THIS CODE WHEN I RUN ON UNBOUND TEXT BOX
IT WORKS 100%, BUT IF I USED ANY BOUND TEXTBOX IT WORKS SOME TIME AND
SOME TIME NOT????

AND IN THE TABLE IT IS SET AS DATE,

CAN ANY ONE PASS COMMENTS ON THIS..I KNOW THIS IS SMALL PROBLEM
SOMETHING MISSING OR SYNTAX MISSING...I AM CONVERTING FROM GREGORIAN
DATE TO HIJRI AND VICE CERSA

=======================================
Private Sub Dt_Dob_ar_AfterUpdate()

Calendar = vbCalHijri
Dt_Dob_en.Value = Dt_Dob_ar.Value
End Sub
=======================================


Maybe add the line
Calendar = vbCalGreg
after you assign the value to Dt_Dob_en?

/
Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: dmiller23462 | last post by:
Hi again guys.... This is my first source of help, by far the best ASP intellectual collective....Thanks in advance for any assistance...Anyway.... The forms I'm still working on (finishing...
1
by: Megan | last post by:
I have 2 tables, CASE and ISSUE. My table, CASE, stores the issues pertaining to that particular case. The table, CASE, was designed with 2 fields, IssueID and IssueDesc. Right now, all of the...
2
by: Danny J. Lesandrini | last post by:
OK, I have never noticed this before, but I'm getting a consistent issue with text boxes on my Access form in an ADP with data in SQL Server. 1) Click in a text box with text 2) Cursor is...
28
by: eastcoastguyz | last post by:
I'm a newbie to CSS, so be kind. :-) I have looked at examples of CSS and have not seen this yet. How can you change the colors of the text in the same word in CSS? For example, when how can you...
2
by: =?Utf-8?B?UmF5IE1pdGNoZWxs?= | last post by:
Hello, Sorry for the long-winded dissertation - but, I have an application where I need to write text to a rich text box using a common method, callable from anywhere in my application. The...
16
by: Neil | last post by:
I posted a few days ago that it seems to me that the Access 2007 rich text feature does not support: a) full text justification; b) programmatic manipulation. I was hoping that someone might...
1
by: peck2000 | last post by:
Related to my earleir post ... this is the same project to re-purpose the Classifieds application in BEGINNING ASP 3.0 (Wrox) to a comicbook database ... This is a brainteaser that should have...
9
by: =?Utf-8?B?QnJpYW4gQ29vaw==?= | last post by:
I want to open a text file and format it into a specific line and then apply color to a specific location of the text and then display it in a RichTextBox after all of this is done. I can do all...
2
by: =?Utf-8?B?SlA=?= | last post by:
Hi all. I'm having a problem with a postback issue and I think it's cache related. Here's my setup: I have a web site that has a signup section. This has simple things like name, age, birth...
2
by: JonWB | last post by:
Hi, I am very new to .Net and have recently taken over someone else’s project. I am developing an asp webpage using C#. I have an asp:table that is populated using data from a database....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.