473,804 Members | 2,126 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_After Update()

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

Nov 13 '05 #1
3 1786
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_After Update()

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
misunderstandin g...

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********@hotm ail.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_After Update()

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_After Update()

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
2030
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 touches) have one issue that I've found in my testing.... I have online submission forms that email to a party and then also append to a plain-text file. I have a link to an "archive" which is
1
300
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 issues are stord in the field, IssueDesc. BUT I'd like to change that so that the issues are stored in the IssueID field. On my form, the "Control Source" was linked to IssueDesc. So, the issues the user selected are stored in the field, IssueDesc,...
2
2670
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 flashing at end of text 3) Press Backspace key 4) ALL text is deleted 5) Press ESC key to undo delete 6) All text is now selected 7) Click again at end of text
28
40648
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 take the word "infosystems" and make the "info" part red, and the "systems" part blue? I don't want to have to hard-code this in HTML which is why I'm looking to CSS to do this. Thanks!
2
3105
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 color of the text will depend upon the first argument and the text will be contained in the second argumet. As far as I know, my application is not multithreaded - at least I don't knowingly start any other threads. Since I don't know what the heck...
16
11140
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 know one way or the other whether that was true or not, or could point me to an article or help text that would. What I have seen so far online and in Access 2007 help seems to confirm the above. But that (or at least (b)) seems incredible that it...
1
2653
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 been easy to resolve but just doesn't seem to work for me ... The original application includes a form page for editing the details of an "item". In my case the item is a comicbook. The page functions just fine as long as I stick with text fields, but I...
9
3015
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 of the above after the file is loaded into the RichTextBox, and I am trying to speed the process up by doing it in a temp file.
2
2106
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 date, etc. When the user visits this page for the first time, a person's data object that is used to store the user's name, age, birth date, etc. is created and stored in session. On the first visit to this page, the object is empty. Whenever the...
2
1536
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. However, there is also a column that contains checkboxes and a column that contains text boxes like so: Location | Stock | Issue (checkbox column) | Issued (textbox column) I want the user to click a checkbox and the value of the ‘Stock’ column...
0
9711
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9593
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10343
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10088
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7633
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6862
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5529
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5668
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4306
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.